/* ===================================
   AUTH.CSS - Trang Đăng nhập & Đăng ký
   =================================== */

/* ========== AUTH HERO ========== */
.auth-hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #6B4423 0%, #8B4513 50%, #A0522D 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMzAgMzBMMCA2MGw2MC02MHoiIGZpbGw9IiNmZmYiIG9wYWNpdHk9IjAuMDUiLz48L3N2Zz4=');
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* ========== AUTH CONTAINER ========== */
.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

/* ========== AUTH CARD ========== */
.auth-card {
    background: #fff;
    border-radius: 20px;
    padding: 50px 45px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideInUp 0.6s ease;
}

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

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: bounce 2s ease-in-out infinite;
}

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

.auth-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #8B4513;
    margin-bottom: 10px;
}

.auth-subtitle {
    font-family: 'Merriweather', serif;
    font-size: 1rem;
    color: #666;
}

/* ========== AUTH FORM ========== */
.auth-form {
    margin-bottom: 25px;
}

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

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.label-icon {
    font-size: 1.2rem;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Merriweather', serif;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-input:focus {
    outline: none;
    border-color: #8B4513;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.form-input::placeholder {
    color: #999;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 16px 25px;
    background: linear-gradient(135deg, #8B4513, #D2691E);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 5px 20px rgba(139, 69, 19, 0.3);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #6B3410, #B5551E);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-text {
    font-family: 'Merriweather', serif;
}

.btn-icon {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.btn-submit:hover .btn-icon {
    transform: translateX(5px);
}

/* ========== AUTH LINKS ========== */
.auth-links {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.auth-links p {
    color: #666;
    font-size: 0.95rem;
}

.auth-links a {
    color: #8B4513;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: #D2691E;
    text-decoration: underline;
}

/* ========== AUTH QUOTE ========== */
.auth-quote {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    color: #fff;
    animation: slideInRight 0.6s ease 0.2s both;
}

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

.quote-icon {
    font-size: 4rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.quote-text {
    font-family: 'Crimson Text', serif;
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #FFF8DC;
}

.quote-author {
    font-family: 'Merriweather', serif;
    font-size: 1.1rem;
    color: #FFD700;
    font-weight: 600;
}

/* ========== ALERT ========== */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

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

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 968px) {
    .auth-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .auth-quote {
        order: -1;
        padding: 30px 25px;
    }
    
    .quote-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .auth-hero {
        padding: 30px 15px;
    }
    
    .auth-card {
        padding: 35px 25px;
    }
    
    .auth-title {
        font-size: 1.8rem;
    }
    
    .auth-icon {
        font-size: 3rem;
    }
    
    .quote-icon {
        font-size: 3rem;
    }
}

/* ========== ADDITIONAL FORM ELEMENTS ========== */
/* For register page with more fields */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}