/* ============================================================
   Base / Reset
   ============================================================ */

html, body {
    height: 100%;
    margin: 0;
}

input, select, textarea, .card, .card-header, .no-border-radius {
    border-radius: 0px !important;
}

main {
    padding-top: 50px;
}

/* ============================================================
   Navbar & Brand
   ============================================================ */

.bg-dark {
    background-color: #75140C !important;
}

.bg-amu {
    background-color: #800000 !important;
}

.bg-amu-green {
    background-color: #063 !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: #ffffff;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #ffd700;
}

.navbar-brand {
    margin-top: -15px;
    margin-bottom: -15px;
    padding-bottom: .3125rem;
    margin-right: 1rem;
    font-size: .6rem;
}

.brand-name {
    font-size: 18px;
}

.tagline {
    font-size: 11px;
}

/* ============================================================
   Cards
   ============================================================ */

.card-header {
    padding: 5px 8px;
}

.border-amu {
    border-color: #063 !important;
}

.full-amu {
    height: 100%;
    width: 100%;
}

/* ============================================================
   General Utility
   ============================================================ */

.li-featured {
    list-style: none;
}

.img-fluid {
    width: 100%;
}

a.skinny {
    font-weight: normal;
}

.error {
    color: red;
}

label {
    display: inline-block;
    margin-bottom: 0.5rem;
    min-width: 220px;
}

/* ============================================================
   Form Styling
   ============================================================ */

.form {
    max-width: 640px;
    padding: 15px;
    margin: 0 auto;
}

.form .form-control {
    position: relative;
    height: auto;
    box-sizing: border-box;
    font-size: 16px;
}

/* ============================================================
   Tables
   ============================================================ */

table {
    border-color: #000000;
    border: 1px solid #000;
}

table td,
table th {
    border-left: 0;
    border-right: 0.01em solid #ccc;
    border-top: 0;
    border-bottom: 0.01em solid #ccc;
}

/* ============================================================
   Footer
   ============================================================ */

.footer,
.push {
    height: 130px;
}


/* ============================================================
   Form Wizard (.bs-wizard)
   ============================================================ */

.bs-wizard { margin-top: 40px; border-bottom: solid 1px #e0e0e0; padding: 0 0 10px 0; }
.bs-wizard > .bs-wizard-step { padding: 0; position: relative; }
.bs-wizard > .bs-wizard-step.waiting > .bs-wizard-dot { background: #fbe8aa; }
.bs-wizard > .bs-wizard-step.waiting > .bs-wizard-dot:after { background: #fbbd19; }
.bs-wizard > .bs-wizard-step.failed > .bs-wizard-dot { background: #e60e0e; }
.bs-wizard > .bs-wizard-step.failed > .bs-wizard-dot:after { background: #fff; }

.bs-wizard > .bs-wizard-step .bs-wizard-stepnum { color: #595959; font-size: 15px; font-weight: bold; margin-bottom: 5px; }
.bs-wizard > .bs-wizard-step .bs-wizard-info { color: #999; font-size: 14px !important; }
.bs-wizard > .bs-wizard-step > .bs-wizard-dot { position: absolute; width: 30px; height: 30px; display: block; background: #119aff; top: 45px; left: 50%; margin-top: -15px; margin-left: -15px; border-radius: 50%; }
.bs-wizard > .bs-wizard-step > .bs-wizard-dot:after { content: ' '; width: 14px; height: 14px; background: #ffffffd4; border-radius: 50px; position: absolute; top: 8px; left: 8px; }
.bs-wizard > .bs-wizard-step > .progress { position: relative; border-radius: 0px; top: 0px; height: 8px; box-shadow: none; margin: 20px 0; }
.bs-wizard > .bs-wizard-step > .progress > .progress-bar { width: 0px; box-shadow: none; background: #119aff; }
.bs-wizard > .bs-wizard-step.complete > .progress > .progress-bar { width: 100%; }
.bs-wizard > .bs-wizard-step.active > .progress > .progress-bar { width: 50%; }
.bs-wizard > .bs-wizard-step:first-child.active > .progress > .progress-bar { width: 100%; }
.bs-wizard > .bs-wizard-step:last-child.active > .progress > .progress-bar { width: 100%; }
.bs-wizard > .bs-wizard-step.disabled > .bs-wizard-dot { background-color: #f5f5f5; }
.bs-wizard > .bs-wizard-step.disabled > .bs-wizard-dot:after { opacity: 0; }
.bs-wizard > .bs-wizard-step:first-child > .progress { left: 50%; width: 50%; }
.bs-wizard > .bs-wizard-step:last-child > .progress { width: 50%; }
.bs-wizard > .bs-wizard-step.disabled a.bs-wizard-dot { pointer-events: none; }

/* Laravel Default Navbar (moved from app.scss) */
.navbar-laravel {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

/* ============================================================
   AUTH PAGES - Modern Premium Light Theme
   ============================================================ */

/* Subtle light-gray to soft cream background */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f2f4f7 0%, #f7f9fa 50%, #faf8f4 100%);
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 80%, rgba(0, 102, 51, 0.02) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(128, 0, 0, 0.02) 0%, transparent 50%);
    animation: authOrbFloat 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes authOrbFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* Premium White Card with Soft Shadows */
.auth-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px !important;
    box-shadow:
        0 10px 25px -5px rgba(0, 0, 0, 0.05),
        0 8px 10px -6px rgba(0, 0, 0, 0.03),
        0 0 1px 0 rgba(0, 0, 0, 0.1);
    max-width: 460px;
    width: 100%;
    overflow: hidden;
    animation: authCardAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes authCardAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card header */
.auth-card .auth-card-header {
    background: #ffffff;
    border-bottom: 1px solid #f0f2f5;
    padding: 2.25rem 2.5rem 1.5rem;
    text-align: center;
    border-radius: 0 !important;
}

.auth-card .auth-card-header .auth-logo {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    object-fit: contain;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f2f5;
    background: #ffffff;
    padding: 8px;
}

.auth-card .auth-card-header .auth-title {
    color: #1a202c;
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.auth-card .auth-card-header .auth-subtitle {
    color: #718096;
    font-size: 0.85rem;
    font-weight: 450;
}

.auth-card .auth-card-header .auth-badge {
    display: inline-block;
    background: rgba(128, 0, 0, 0.06);
    color: #800000;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(128, 0, 0, 0.1);
    margin-top: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Card body */
.auth-card .auth-card-body {
    padding: 2.25rem 2.5rem 2.5rem;
    background: #ffffff;
}

/* Form groups */
.auth-card .auth-form-group {
    margin-bottom: 1.35rem;
    position: relative;
}

.auth-card .auth-form-group label {
    display: block;
    color: #4a5568;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.45rem;
    min-width: auto;
}

.auth-card .auth-form-group .form-control {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px !important;
    color: #1a202c;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    height: auto;
}

.auth-card .auth-form-group .form-control::placeholder {
    color: #a0aec0;
}

.auth-card .auth-form-group .form-control:focus {
    background: #ffffff;
    border-color: #800000;
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.08);
    outline: none;
    color: #1a202c;
}

/* Input icon wrapper */
.auth-input-icon {
    position: relative;
}

.auth-input-icon .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 0.9rem;
    pointer-events: none;
    transition: color 0.25s ease;
}

.auth-input-icon .form-control {
    padding-left: 2.75rem !important;
}

.auth-input-icon .form-control:focus + .input-icon,
.auth-input-icon:focus-within .input-icon {
    color: #800000;
}

/* Checkbox */
.auth-card .auth-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.auth-card .auth-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #800000;
    cursor: pointer;
    border-radius: 4px;
}

.auth-card .auth-check label {
    color: #4a5568;
    font-size: 0.85rem;
    font-weight: 450;
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 0;
    cursor: pointer;
    min-width: auto;
}

/* Submit button */
.auth-card .auth-btn {
    display: block;
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, #800000, #9a0000);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    border: none;
    border-radius: 12px !important;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.auth-card .auth-btn:hover {
    background: linear-gradient(135deg, #9a0000, #b50000);
    box-shadow: 0 4px 15px rgba(128, 0, 0, 0.25);
    transform: translateY(-1px);
}

.auth-card .auth-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(128, 0, 0, 0.15);
}

/* Links */
.auth-card .auth-link {
    color: #800000;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-card .auth-link:hover {
    color: #b50000;
    text-decoration: underline;
}

/* Footer area */
.auth-card .auth-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Alert overrides inside auth card */
.auth-card .alert {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #2d3748;
    border-radius: 12px !important;
    font-size: 0.875rem;
}

.auth-card .alert-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.auth-card .alert-danger {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

/* Validation errors */
.auth-card .invalid-feedback {
    color: #e53e3e;
    font-size: 0.8rem;
    margin-top: 0.4rem;
}

.auth-card .is-invalid {
    border-color: #f56565 !important;
    box-shadow: 0 0 0 3px rgba(245, 101, 101, 0.08) !important;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    gap: 1rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider span {
    color: #718096;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Responsive */
@media (max-width: 575.98px) {
    .auth-card .auth-card-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .auth-card .auth-card-body {
        padding: 1.5rem;
    }

    .auth-card .auth-card-header .auth-title {
        font-size: 1.25rem;
    }

    .auth-card .auth-footer {
        flex-direction: column;
        text-align: center;
    }
}
