/* ===== LOGIN & LANDING PAGE STYLES ===== */
:root {
    --primary: #2d6a4f;
    --primary-dark: #1b4332;
    --primary-light: #40916c;
    --accent: #d4a843;
    --accent-light: #e9c46a;
}

/* Full-screen gradient background */
body.login-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 40%, #40916c 70%, #52b788 100%);
    background-attachment: fixed;
    color: #fff;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Animated background overlay */
body.login-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(212, 168, 67, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(82, 183, 136, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(27, 67, 50, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: bgShift 12s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(-2%, -1%); }
}

/* Floating particles (CSS only) */
body.login-page::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.15) 0%, transparent 100%),
        radial-gradient(2px 2px at 40% 70%, rgba(255,255,255,0.1) 0%, transparent 100%),
        radial-gradient(1px 1px at 60% 20%, rgba(255,255,255,0.12) 0%, transparent 100%),
        radial-gradient(1px 1px at 80% 60%, rgba(255,255,255,0.08) 0%, transparent 100%),
        radial-gradient(2px 2px at 10% 80%, rgba(255,255,255,0.1) 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 40%, rgba(255,255,255,0.12) 0%, transparent 100%);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: particleFloat 20s linear infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

@keyframes particleFloat {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50px, -50px) rotate(10deg); }
}

/* Header */
.login-header {
    text-align: center;
    padding: 2.5rem 1.5rem 1rem;
    position: relative;
    z-index: 1;
    animation: fadeInDown 0.8s ease-out;
    width: 100%;
    max-width: 900px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.login-header .subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 300;
}

/* Header icon/logo area */
.login-header .logo-icon {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Info / Feature Buttons */
.info-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-btn {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}
.info-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    color: #fff;
}

/* Info text */
.info-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 700px;
    margin: 1rem auto;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    display: none;
    animation: fadeIn 0.3s ease-out;
}
.info-text.visible {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* WhatsApp icon */
.whatsapp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: rgba(37, 211, 102, 0.15);
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    position: relative;
}
.whatsapp-link:hover {
    background: rgba(37, 211, 102, 0.25);
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.3);
}
.whatsapp-link img {
    width: 28px;
    height: 28px;
}

/* ===== AUTH CARD ===== */
.auth-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2rem 2rem 1.5rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.auth-card .auth-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
}

/* Form controls inside auth card */
.auth-card .form-control,
.auth-card .form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}
.auth-card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
.auth-card .form-control:focus,
.auth-card .form-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
}
.auth-card .form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M4.646 5.646a.5.5 0 0 1 .708 0L8 8.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    appearance: none;
    -webkit-appearance: none;
}
.auth-card .form-select option {
    background: #2d6a4f;
    color: #fff;
}
.auth-card .form-label {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

/* Auth buttons */
.auth-card .btn-auth {
    width: 100%;
    padding: 0.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.auth-card .btn-auth.btn-login {
    background: linear-gradient(135deg, var(--accent), #b8922f);
    color: #fff;
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.3);
}
.auth-card .btn-auth.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 168, 67, 0.4);
}
.auth-card .btn-auth.btn-register {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.auth-card .btn-auth.btn-register:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Auth toggle links */
.auth-toggle-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.auth-toggle-link {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.auth-toggle-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Form transition */
.auth-card form {
    transition: all 0.3s ease;
}
.auth-card form:not(.d-none) {
    animation: formSlideIn 0.35s ease-out;
}
@keyframes formSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== FEATURE CARDS ===== */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    max-width: 900px;
    width: 100%;
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.feature-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
}
.feature-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}
.feature-card .feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--accent-light);
}
.feature-card h5 {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

/* ===== FOOTER ===== */
.login-footer {
    text-align: center;
    padding: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    position: relative;
    z-index: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .login-header h1 {
        font-size: 2rem;
    }
    .login-header .subtitle {
        font-size: 1rem;
    }
    .auth-card {
        padding: 1.5rem 1.25rem 1.25rem;
        margin: 0 1rem;
        max-width: 100%;
    }
    .auth-card .auth-title {
        font-size: 1.25rem;
    }
    .feature-cards {
        grid-template-columns: 1fr 1fr;
        padding: 1.5rem 1rem;
        gap: 0.75rem;
    }
    .feature-card {
        padding: 1rem;
    }
    .feature-card .feature-icon {
        font-size: 1.5rem;
    }
    .login-header {
        padding: 2rem 1rem 0.5rem;
    }
    .info-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .login-header h1 {
        font-size: 1.6rem;
    }
    .feature-cards {
        grid-template-columns: 1fr;
    }
    .auth-toggle-links {
        flex-direction: column;
        align-items: center;
    }
    .auth-toggle-link {
        width: 100%;
        text-align: center;
    }
}

/* ===== PRINT ===== */
@media print {
    body.login-page {
        background: #fff !important;
        color: #333 !important;
    }
    body.login-page::before,
    body.login-page::after {
        display: none !important;
    }
    .auth-card {
        border: 1px solid #ddd !important;
        background: #fff !important;
    }
}
