/* Authentication Pages Styling */
body{
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

.auth-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #F5DE75 0%, #AD7B2B 50%, #000000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.auth-container::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="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 380px;
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease-out;
}

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

.auth-header {
    text-align: center;
    padding: 15px 30px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background-color: #000;
}

.auth-logo {
    width: 80px;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    filter: drop-shadow(0 3px 6px rgba(184, 134, 11, 0.2));
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.auth-logo .logo-image {
    width: 90px;
    height: auto;
    max-height: 90px;
    object-fit: contain;
}

.auth-brand-en {
    color: #B8860B;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 3px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    margin-bottom: 10px;
}

.auth-title {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    /* margin-bottom: 8px; */
}

.auth-subtitle {
    color: #666;
    font-size: 16px;
    margin-bottom: 0;
}

.auth-body {
    padding: 20px 25px;
    font-size: 14px;
}

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

.form-group .form-control {
    height: 48px;
    padding: 12px 14px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    width: 100%;
    box-sizing: border-box;
}

.form-group .form-control:focus {
    border-color: #4a9eff;
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
    background: white;
    outline: none;
}

.form-group .form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group .form-control::placeholder {
    color: #999;
    font-weight: 500;
}

.form-check {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid #e1e5e9;
    border-radius: 5px;
    margin-top: 0.25rem;
    transition: all 0.3s ease;
}

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

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

.form-check-label {
    color: #666;
    font-weight: 500;
    margin-left: 8px;
}

.btn-auth {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #F5DE75 0%, #AD7B2B 100%);
    border: none;
    border-radius: 10px;
    color: #000;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    margin: 0;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(245, 222, 117, 0.4);
    background: linear-gradient(135deg, #AD7B2B 0%, #8B6914 100%);
    color: #fff;
}

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

.btn-auth:focus {
    box-shadow: 0 0 0 3px rgba(245, 222, 117, 0.3);
}

.btn-link-auth {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 15px;
    margin-bottom: 10px;
    display: inline-block;
}

.btn-link-auth:hover {
    color: #F5DE75;
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    padding: 12px 30px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.auth-footer p {
    color: #666;
    margin-bottom: 0;
}

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

.auth-footer a:hover {
    color: #357abd;
    text-decoration: underline;
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 14px;
    margin-top: 8px;
    font-weight: 500;
}

.alert {
    border-radius: 12px;
    border: none;
    padding: 16px 20px;
    margin-bottom: 25px;
    font-weight: 500;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-left: 4px solid #dc3545;
}

.alert-success {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
    border-left: 4px solid #198754;
}

/* Responsive Design */
@media (max-width: 576px) {
    .auth-container {
        padding: 10px;
    }
    
    .auth-card {
        border-radius: 12px;
        max-width: 320px;
    }
    
    .auth-header {
        padding: 12px 20px 8px;
    }
    
    .auth-body {
        padding: 15px 20px;
    }
    
    .auth-footer {
        padding: 10px 20px 15px;
    }
    
    .auth-logo {
        width: 70px;
        height: 70px;
    }
    
    .auth-logo .logo-image {
        width: 70px;
        height: auto;
        max-height: 70px;
    }
    
    .auth-title {
        font-size: 22px;
    }
    
    .auth-brand-en {
        font-size: 24px;
        letter-spacing: 2px;
    }
    
    .form-group .form-control {
        height: 44px;
        font-size: 14px;
    }
    
    .btn-auth {
        height: 42px;
        font-size: 15px;
    }
    
    .btn-link-auth {
        margin-top: 12px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .auth-card {
        background: rgba(30, 30, 30, 0.95);
        color: #ffffff;
    }
    
    .auth-title {
        color: #ffffff;
    }
    
    .auth-subtitle {
        color: #cccccc;
    }
    
    .form-group .form-control {
        background: rgba(50, 50, 50, 0.8);
        border-color: #444;
        color: #ffffff;
    }
    
    .form-group .form-control:focus {
        background: rgba(60, 60, 60, 0.9);
    }
    
    .form-group .form-control::placeholder {
        color: #cccccc;
    }
    
    .form-check-label {
        color: #cccccc;
    }
    
    .auth-footer p {
        color: #cccccc;
    }
}