/* Login Page Styles
 * Extracted from login.php
 * Contains: login card, form elements, OTP inputs, animations
 * Uses variables from layout.css (:root defined there)
 * Local overrides for standalone page rendering
 */

:root {
    /* Primary Theme Colors */
    --primary-color: #008190;
    --primary-dark: #006570;
    --primary-light: #e6f2f4;
    --primary-gradient: linear-gradient(135deg, #008190 0%, #00a0b0 100%);

    /* Secondary/Accent Colors */
    --secondary-color: #F38E3E;
    --accent-color: #F38E3E;
    --accent-dark: #e67e2e;

    /* Text Colors */
    --text-color: #333;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --text-muted: #6c757d;

    /* Background & Border */
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.15);

    /* Status Colors */
    --success-color: #28a745;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #e6f2f4;
    /* Solid light color */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', 'Poppins', sans-serif;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Removed floating animation body::before */

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-30px, 30px) rotate(180deg);
    }
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
    padding: 48px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-icon {
    background: var(--primary-color);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    /* animation: pulse 2s ease-in-out infinite; */
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.header-icon i {
    color: white;
    font-size: 2.5rem;
}

h4 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.75rem;
}

.text-muted {
    color: var(--text-muted) !important;
    font-size: 0.95rem;
}

/* Enhanced Tabs */
.nav-pills {
    background: var(--bg-light);
    padding: 6px;
    border-radius: 16px;
    margin-bottom: 32px;
}

.nav-pills .nav-link {
    color: var(--text-muted);
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.nav-pills .nav-link:hover {
    background: rgba(0, 129, 144, 0.1);
    color: var(--primary-color);
}

.nav-pills .nav-link.active {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.nav-pills .nav-link i {
    font-size: 1.1rem;
}

/* Form Elements */
.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    padding: 14px 16px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    background: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 129, 144, 0.1);
    outline: none;
    background: white;
}

.form-control:hover {
    border-color: var(--primary-light);
}

.input-group-text {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-right: none;
    border-radius: 12px 0 0 12px;
    color: var(--primary-color);
    padding: 14px 16px;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 12px 12px 0;
}

.input-group:focus-within .input-group-text {
    border-color: var(--primary-color);
    background: rgba(0, 129, 144, 0.05);
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    padding: 8px 16px;
}

.btn-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* OTP Input */
.otp-input {
    width: 55px;
    height: 55px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    background: white;
    margin: 0 6px;
}

.otp-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 129, 144, 0.15);
    outline: none;
    transform: scale(1.05);
}

/* Form Transitions */
#mobileForm,
#otpForm {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Message Styling */
#message {
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Links */
a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding: 0;
        align-items: flex-start;
        background: white;
    }

    body::before {
        display: none;
    }

    .login-card {
        border-radius: 0;
        box-shadow: none;
        padding: 24px 20px 60px 20px;
        width: 100%;
        max-width: 100%;
        min-height: 100vh;
        border: none;
        background: white;
    }

    .header-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 16px;
    }

    .header-icon i {
        font-size: 2rem;
    }

    h4 {
        font-size: 1.5rem;
    }

    .otp-input {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
        margin: 0 4px;
    }
}

/* Loading Animation */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    right: 20px;
    margin-top: -8px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Install Button Styling */
#installBtn {
    background: #1a1a1a;
    border: none;
    transition: all 0.3s ease;
}

#installBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}