/* assets/css/auth_redesign.css */

:root {
    --auth-primary: #1B5E20;
    --auth-primary-light: #2E7D32;
    --auth-accent: #43A047;
    --auth-bg-light: #F8FAF9;
    --auth-input-bg: #E8F5E9;
    --auth-white: #ffffff;
    --auth-text: #1a1a1a;
    --auth-text-muted: #666;
    --auth-radius: 20px;
    --auth-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --auth-transition: all 0.3s ease;
}

body.auth-page {
    background-color: var(--auth-bg-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 20px;
}

.auth-main-wrapper {
    display: flex;
    max-width: 900px;
    width: 100%;
    background: var(--auth-white);
    border-radius: var(--auth-radius);
    overflow: hidden;
    box-shadow: var(--auth-shadow);
    min-height: 550px;
}

/* Brand Section (Left side on Desktop) */
.auth-brand-section {
    flex: 1;
    background: linear-gradient(135deg, var(--auth-primary-light) 0%, var(--auth-primary) 100%);
    padding: 40px;
    color: var(--auth-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-brand-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.auth-brand-content {
    position: relative;
    z-index: 1;
}

.auth-brand-section h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.auth-brand-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 300px;
}

.auth-brand-section .logo-img {
    width: 80px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.auth-brand-section .btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--auth-white);
    color: var(--auth-white);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--auth-transition);
    margin-top: 20px;
}

.auth-brand-section .btn-outline:hover {
    background: var(--auth-white);
    color: var(--auth-primary);
}

/* Form Section (Right side on Desktop) */
.auth-form-section {
    flex: 1.2;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-header {
    margin-bottom: 35px;
}

.auth-form-header h2 {
    font-size: 2rem;
    color: var(--auth-primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.auth-form-header p {
    color: var(--auth-text-muted);
}

.auth-form-group {
    margin-bottom: 20px;
}

.auth-form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--auth-text);
}

.auth-input {
    width: 100%;
    padding: 14px 20px;
    background-color: var(--auth-input-bg);
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--auth-text);
    transition: var(--auth-transition);
    box-sizing: border-box;
}

.auth-input:focus {
    outline: none;
    background-color: var(--auth-white);
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 4px rgba(67, 160, 71, 0.1);
}

.auth-btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--auth-accent) 0%, var(--auth-primary-light) 100%);
    border: none;
    border-radius: 12px;
    color: var(--auth-white);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--auth-transition);
    box-shadow: 0 4px 15px rgba(67, 160, 71, 0.3);
    margin-top: 10px;
}

.auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(67, 160, 71, 0.4);
}

.auth-footer-links {
    margin-top: 25px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--auth-text-muted);
}

.auth-footer-links a {
    color: var(--auth-primary-light);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer-links a:hover {
    text-decoration: underline;
}

/* Alert Styling */
.auth-alert {
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.auth-alert-danger {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.auth-alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

/* Centered Layout (for Verify, Setup, etc.) */
.auth-centered-wrapper {
    max-width: 500px;
    width: 100%;
    background: var(--auth-white);
    border-radius: var(--auth-radius);
    overflow: hidden;
    box-shadow: var(--auth-shadow);
    padding: 40px;
    text-align: center;
}

.auth-centered-wrapper .logo-img {
    width: 60px;
    margin-bottom: 20px;
}

.auth-centered-wrapper h1 {
    font-size: 1.8rem;
    color: var(--auth-primary);
    margin-bottom: 15px;
}

.auth-centered-wrapper p {
    color: var(--auth-text-muted);
    margin-bottom: 30px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .auth-main-wrapper {
        flex-direction: column;
        max-width: 450px;
    }

    .auth-brand-section {
        padding: 40px 20px;
    }

    .auth-form-section {
        padding: 40px 30px;
    }

    .auth-brand-section h1 {
        font-size: 2rem;
    }

    .auth-centered-wrapper {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    body.auth-page {
        padding: 10px;
    }

    .auth-form-section {
        padding: 30px 20px;
    }

    .auth-form-section {
        padding: 30px 20px;
    }
}

/* Mobile Redesign Utilities */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .mobile-auth-header {
        text-align: center;
        color: var(--auth-white);
        margin-top: 10px;
    }

    .mobile-auth-header h2 {
        font-size: 2.2rem;
        font-weight: 700;
        margin-bottom: 5px;
    }

    .mobile-auth-header h3 {
        font-size: 1.2rem;
        font-weight: 500;
        opacity: 0.9;
        margin: 0;
    }

    /* Adjust form header for mobile since we moved title to green area */
    .auth-form-header.desktop-only {
        display: none;
    }
}