@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap");
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css");

:root {
    --primary-color: #0a1f44;
    --accent-color: #c9a24b;
    --accent-color-2: #a87f2e;
    --navy-900: #06152f;
    --text-light: #ffffff;
    --glass-bg: rgba(8, 22, 46, 0.80);
    --glass-border: rgba(201, 162, 75, 0.18);
    --input-bg: rgba(255, 255, 255, 0.06);
}

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

/* Full Screen Background Setup */
.auth-page-bg {
    min-height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Navy overlay on the background image */
.auth-page-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(6, 21, 47, 0.80), rgba(10, 31, 68, 0.48));
    z-index: 1;
}

header {
    display: none;
}

.auth-card-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.15rem;
}

.auth-card-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.auth-card {
    position: relative;
    z-index: 2;
    width: 384px;
    max-width: 92%;
    padding: 1.9rem 1.85rem;
    margin: 2rem auto;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    box-shadow: 0 30px 60px -12px rgba(6, 21, 47, 0.7);
    animation: fadeInScale 0.6s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.auth-card h4 {
    font-weight: 700;
    font-size: 1.35rem;
    margin-bottom: 0.3rem;
    color: #fff;
    text-align: center;
}

.auth-card p {
    color: #b9c2d4;
    text-align: center;
    margin-bottom: 1.4rem;
    font-size: 0.85rem;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 0.85rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.72rem;
    margin-bottom: 0.35rem;
    color: #9aa6bd;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper i {
    position: absolute;
    left: 1.05rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-size: 0.9rem;
}

.form-control-modern {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 11px;
    padding: 0.7rem 0.9rem 0.7rem 2.8rem;
    font-size: 0.92rem;
    color: #fff;
    font-family: inherit;
    transition: all 0.3s;
}

.form-control-modern:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(201, 162, 75, 0.22);
}

.btn-modern {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color-2));
    border: none;
    border-radius: 11px;
    color: var(--navy-900);
    font-weight: 700;
    letter-spacing: .3px;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
    box-shadow: 0 12px 24px rgba(201, 162, 75, 0.28);
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(201, 162, 75, 0.4);
}

.forgot-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s;
}

/* tighten the trailing helper block under forms */
.auth-card .mt-4 { margin-top: 1rem !important; }
.auth-card .mt-4 .small, .auth-card .small { font-size: 0.82rem; }

.forgot-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* Custom Alert */
.alert-modern {
    border-radius: 11px;
    padding: 0.75rem 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
}

.alert-modern-error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff8e97;
}

.alert-modern-success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #82f59d;
}

/* Admin Theme Variation — steel-navy accent within the same navy/gold system */
.admin-card {
    --accent-color: #c9a24b;
    border-top: 1px solid var(--glass-border);
    box-shadow: 0 30px 60px -12px rgba(6, 21, 47, 0.85);
}

.admin-card .btn-modern {
    background: linear-gradient(135deg, #17356b, #0a1f44);
    color: #fff;
    box-shadow: 0 12px 24px rgba(10, 31, 68, 0.4);
}

.admin-card .btn-modern:hover {
    box-shadow: 0 16px 30px rgba(23, 53, 107, 0.5);
}