/* === VARIABLES & RESET === */
:root {
    /* Color Palette */
    --primary-gradient: linear-gradient(180deg, #4A6FA5 0%, #6B93C5 100%);
    --primary-gradient-hover: linear-gradient(180deg, #3a5a8c 0%, #5a7cad 100%);
    --card-bg: #ffffff;
    --body-bg: #f8fafc;
    --text-primary: #2c3e50;
    --text-secondary: #64748b;
    --text-light: #ffffff;
    --border-color: #f1f5f9;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    
    /* Spacing */
    --border-radius: 16px;
    --card-padding: 40px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--body-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* === LOGIN/REGISTER CONTAINER === */
.auth-container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    min-height: 600px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

/* === LEFT PANEL === */
.auth-left-panel {
    flex: 1;
    background: var(--primary-gradient);
    padding: var(--card-padding);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-left-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none" opacity="0.1"><path d="M0,0 L100,0 L100,100 Z" fill="white"/></svg>');
    background-size: cover;
}

.logo {
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}

.logo h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.logo p {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 300;
}

.auth-features {
    position: relative;
    z-index: 2;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    backdrop-filter: blur(10px);
}

.feature-text h4 {
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: 600;
}

.feature-text p {
    font-size: 14px;
    opacity: 0.8;
}

/* === RIGHT PANEL === */
.auth-right-panel {
    flex: 1;
    background-color: var(--card-bg);
    padding: var(--card-padding);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-header {
    margin-bottom: 40px;
    text-align: center;
}

.auth-header h2 {
    font-size: 32px;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 400;
}

/* === FORM STYLES === */
.auth-form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: var(--body-bg);
    color: var(--text-primary);
}

.form-control:focus {
    outline: none;
    border-color: #4A6FA5;
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

.form-control-icon {
    position: absolute;
    right: 20px;
    top: 42px;
    color: var(--text-secondary);
    font-size: 18px;
}

/* === PASSWORD TOGGLE === */
.password-toggle {
    position: absolute;
    right: 20px;
    top: 42px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #4A6FA5;
}

/* === CHECKBOX STYLES === */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    appearance: none;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: #4A6FA5;
    border-color: #4A6FA5;
}

.form-check-input:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.form-check-label {
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.form-check-label a {
    color: #4A6FA5;
    text-decoration: none;
    font-weight: 500;
}

.form-check-label a:hover {
    text-decoration: underline;
}

/* === BUTTON STYLES === */
.btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--text-light);
    box-shadow: 0 4px 12px rgba(74, 111, 165, 0.3);
    margin-bottom: 20px;
}

.btn-primary:hover {
    background: var(--primary-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 111, 165, 0.4);
}

.btn-outline {
    background: transparent;
    color: #4A6FA5;
    border: 2px solid #4A6FA5;
}

.btn-outline:hover {
    background-color: rgba(74, 111, 165, 0.1);
}

/* === AUTH FOOTER === */
.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
}

.auth-footer a {
    color: #4A6FA5;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* === REGISTER SPECIFIC === */
.register-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.register-grid .form-group {
    margin-bottom: 0;
}

.register-grid .form-group:nth-child(1),
.register-grid .form-group:nth-child(2) {
    grid-column: span 2;
}

/* === LOGIN SPECIFIC === */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.forgot-password {
    color: #4A6FA5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* === SOCIAL LOGIN === */
.social-login {
    margin: 25px 0;
    text-align: center;
}

.social-login p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
    position: relative;
}

.social-login p::before,
.social-login p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background-color: var(--border-color);
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-buttons {
    display: flex;
    gap: 15px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--body-bg);
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.social-btn:hover {
    border-color: #4A6FA5;
    background-color: rgba(74, 111, 165, 0.05);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 900px) {
    .auth-container {
        flex-direction: column;
        max-width: 500px;
    }
    
    .auth-left-panel {
        padding: 30px;
        min-height: 300px;
    }
    
    .auth-right-panel {
        padding: 30px;
    }
    
    .register-grid {
        grid-template-columns: 1fr;
    }
    
    .register-grid .form-group:nth-child(1),
    .register-grid .form-group:nth-child(2) {
        grid-column: span 1;
    }
}

@media (max-width: 576px) {
    body {
        padding: 10px;
    }
    
    .auth-container {
        border-radius: 12px;
    }
    
    .auth-left-panel,
    .auth-right-panel {
        padding: 25px;
    }
    
    .logo h1 {
        font-size: 28px;
    }
    
    .auth-header h2 {
        font-size: 24px;
    }
    
    .form-control {
        padding: 14px 16px;
    }
    
    .social-buttons {
        flex-direction: column;
    }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-right-panel {
    animation: fadeInUp 0.6s ease-out;
}

.feature-item {
    animation: fadeInUp 0.6s ease-out;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.logo h1 {
    animation: float 3s ease-in-out infinite;
}