:root {
    --primary-maroon: #5C001F;
    --secondary-gold: #F8A617;
    --bg-moccasin: #FFE6BF;
    --card-ivory: #FFFDF9;
    --border-grey: #9CA3AF;
    --text-charcoal: #1F2937;
    --success-green: #4CAF7D;
    --error-red: #8B1E1E;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: url('/images/utmbg.png') center center / cover no-repeat fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: var(--text-charcoal);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.auth-container {
    background-color: rgba(255, 253, 249, 0.95);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(92, 0, 31, 0.25), 0 0 0 1px rgba(92, 0, 31, 0.1);
    width: 420px;
    max-width: 90%;
    text-align: center;
}

.auth-container {
    background-color: var(--card-ivory);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(92, 0, 31, 0.15), 0 0 0 1px rgba(92, 0, 31, 0.08);
    width: 420px;
    max-width: 90%;
    text-align: center;
}

.auth-container h3 {
    margin-bottom: 25px;
    font-size: 1.8em;
    color: var(--primary-maroon);
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-charcoal);
    font-size: 0.95em;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-grey);
    border-radius: 10px;
    background-color: #FFFFFF;
    color: var(--text-charcoal);
    font-size: 1em;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-maroon);
    box-shadow: 0 0 0 4px rgba(92, 0, 31, 0.1);
    background-color: #FFFFFF;
}

.form-control::placeholder {
    color: var(--border-grey);
}

.form-group label.inline-flex {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

.form-group input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-maroon);
}

.auth-btn {
    display: inline-block;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    color: #FFFFFF;
    font-size: 1em;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-maroon) 0%, #4A0018 100%);
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #4A0018 0%, var(--primary-maroon) 100%);
    box-shadow: 0 6px 18px rgba(92, 0, 31, 0.3);
    transform: translateY(-2px);
}

.btn-primary-custom:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(92, 0, 31, 0.3);
}

.btn-success-custom {
    background: linear-gradient(135deg, var(--success-green) 0%, #3D9465 100%);
}

.btn-success-custom:hover {
    background: linear-gradient(135deg, #3D9465 0%, var(--success-green) 100%);
    box-shadow: 0 6px 18px rgba(76, 175, 125, 0.3);
    transform: translateY(-2px);
}

.btn-info-custom {
    background: linear-gradient(135deg, var(--secondary-gold) 0%, #E69610 100%);
}

.btn-info-custom:hover {
    background: linear-gradient(135deg, #E69610 0%, var(--secondary-gold) 100%);
    box-shadow: 0 6px 18px rgba(248, 166, 23, 0.3);
    transform: translateY(-2px);
}

.btn-warning-custom {
    background: linear-gradient(135deg, var(--secondary-gold) 0%, #E69610 100%);
    color: var(--text-charcoal);
}

.btn-warning-custom:hover {
    background: linear-gradient(135deg, #E69610 0%, var(--secondary-gold) 100%);
    box-shadow: 0 6px 18px rgba(248, 166, 23, 0.3);
    transform: translateY(-2px);
}

.alert {
    padding: 15px 18px;
    margin-bottom: 20px;
    border-radius: 10px;
    background-color: var(--error-red);
    color: white;
    font-weight: 500;
    border-left: 4px solid #6B1515;
}

.success-message {
    background-color: var(--success-green);
    color: white;
    padding: 15px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 600;
    border-left: 4px solid #3D9465;
}

.success-message p {
    margin: 0;
}

.forgot-password-link {
    display: block;
    text-align: right;
    margin-top: 10px;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: var(--primary-maroon);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.forgot-password-link:hover {
    color: var(--secondary-gold);
    text-decoration: underline;
}

.logo {
    max-width: 120px;
    height: auto;
    margin: 0 auto 20px;
    filter: drop-shadow(0 2px 8px rgba(92, 0, 31, 0.15));
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.text-sm {
    font-size: 0.95em;
    color: var(--text-charcoal);
    line-height: 1.5;
}

@media (max-width: 480px) {
    .auth-container {
        padding: 30px 25px;
    }
    
    .auth-container h3 {
        font-size: 1.5em;
    }
    
    .logo {
        max-width: 140px;
    }
}