/* Authentication Layout Styles */
.auth-body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.auth-background {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-background::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"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.auth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

/* Login Container */
.login-container, .register-container {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card, .register-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideUp 0.6s ease-out;
}

.register-card {
    max-width: 600px;
}

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

/* Header Styles */
.login-header, .register-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2, .register-header h2 {
    color: #333;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 28px;
}

.login-header p, .register-header p {
    color: #666;
    margin-bottom: 0;
    font-size: 16px;
}

.login-header i, .register-header i {
    color: #667eea;
    margin-right: 10px;
}

/* Form Styles */
.login-form, .register-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

.form-label i {
    color: #667eea;
    margin-right: 8px;
    width: 16px;
}

.form-control {
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    background: #fff;
}

.form-control::placeholder {
    color: #adb5bd;
}

/* CAPTCHA Styles */
.captcha-group {
    margin-bottom: 25px;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.captcha-image {
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    height: 40px;
    background: #f8f9fa;
}

#refreshCaptcha {
    border-radius: 8px;
    padding: 8px 12px;
    border: 2px solid #e1e5e9;
    background: #fff;
    color: #667eea;
    transition: all 0.3s ease;
}

#refreshCaptcha:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

/* Checkbox Styles */
.form-check {
    margin-bottom: 25px;
}

.form-check-input {
    margin-top: 0.25rem;
}

.form-check-label {
    color: #666;
    font-size: 14px;
    margin-left: 5px;
}

/* Button Styles */
.btn-login, .btn-register {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-register {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.btn-login:hover, .btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: white;
}

.btn-login:active, .btn-register:active {
    transform: translateY(0);
}

/* Footer Styles */
.login-footer, .register-footer {
    text-align: center;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #764ba2;
    text-decoration: underline;
}

.register-footer p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.register-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.register-footer a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Auth Footer */
.auth-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 15px 0;
    font-size: 12px;
    z-index: 5;
}

.auth-footer p {
    margin: 0;
}

/* Validation Styles */
.text-danger {
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.validation-summary-errors {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 20px;
}

.validation-summary-errors li {
    color: #721c24;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-card, .register-card {
        padding: 30px 20px;
        margin: 10px;
        border-radius: 15px;
    }
    
    .login-header h2, .register-header h2 {
        font-size: 24px;
    }
    
    .captcha-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .captcha-image {
        width: 100%;
        height: 50px;
    }
    
    #refreshCaptcha {
        width: 100%;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .auth-background {
        padding: 10px;
    }
    
    .login-card, .register-card {
        padding: 25px 15px;
    }
    
    .form-control {
        padding: 10px 12px;
    }
    
    .btn-login, .btn-register {
        padding: 10px;
        font-size: 14px;
    }
}