/* ==========================================================================
   Auth pages (login / 2FA / security data) — shared "floating card" style
   ========================================================================== */

.au-wrap {
    position: relative;
    z-index: 3;
    width: 100%;
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 46px 18px 70px;
    box-sizing: border-box;
}

.au-card {
    position: relative;
    width: 100%;
    max-width: 470px;
    padding: 38px 34px 30px;
    border-radius: 20px;
    background: linear-gradient(155deg, rgba(20,14,10,.84) 0%, rgba(6,5,5,.93) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(243,229,171,.24);
    box-shadow: 0 24px 54px rgba(0,0,0,.72), 0 0 34px rgba(243,229,171,.07);
    overflow: hidden;
}
.au-card::before {
    content: '';
    position: absolute;
    inset-inline: 0; top: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--op-accent, #f3e5ab), transparent);
    background-size: 200% 100%;
    animation: auSweep 3.2s linear infinite;
}
@keyframes auSweep { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.au-crest {
    width: 68px; height: 68px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 28px;
    background: radial-gradient(circle at 32% 26%, rgba(243,229,171,.26), rgba(0,0,0,.6));
    border: 1px solid rgba(243,229,171,.42);
    box-shadow: 0 0 26px rgba(243,229,171,.22);
}

.au-card h1 {
    font-family: 'Cinzel Decorative', 'Cairo', serif;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: 2.6px;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 6px;
    background: linear-gradient(180deg, #fff, #e2d094);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.au-card .sub {
    font-family: 'Cairo', sans-serif;
    font-size: 12.5px;
    color: rgba(255,255,255,.45);
    text-align: center;
    margin: 0 0 28px;
}

.au-field { position: relative; margin-bottom: 20px; }

.au-field label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: 'Cinzel Decorative', 'Cairo', serif;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: rgba(243,229,171,.72);
    margin-bottom: 9px;
}
.au-field label i { color: var(--op-accent-2, #dfb76c); font-size: 13px; }

.au-field input {
    width: 100%;
    padding: 13px 15px;
    border-radius: 11px;
    background: rgba(12,10,9,.7);
    border: 1px solid rgba(243,229,171,.18);
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    transition: all .24s ease;
    box-sizing: border-box;
}
.au-field input::placeholder { color: rgba(255,255,255,.26); font-weight: 400; }
.au-field input:focus {
    outline: none;
    border-color: var(--op-accent, #f3e5ab);
    background: rgba(18,15,13,.9);
    box-shadow: 0 0 0 3px rgba(243,229,171,.12), 0 0 18px rgba(243,229,171,.12);
}

.au-check {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: 'Cairo', sans-serif;
    font-size: 12.5px;
    color: rgba(255,255,255,.55);
    margin-bottom: 20px;
    cursor: pointer;
}
.au-check input { width: 16px; height: 16px; accent-color: var(--op-accent-2, #dfb76c); cursor: pointer; }

.au-submit {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255,255,255,.75);
    border-radius: 12px;
    background: linear-gradient(180deg, #dfb76c 0%, #b38f46 100%);
    color: #0d0a06;
    font-family: 'Cinzel Decorative', 'Cairo', serif;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 6px 0 #8c6d32, 0 10px 22px rgba(0,0,0,.55);
    transition: all .28s cubic-bezier(.25,.8,.25,1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.au-submit::after {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 55%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,.6), transparent);
    transform: skewX(-22deg);
    transition: left .7s ease;
}
.au-submit:hover::after { left: 130%; }
.au-submit:hover {
    background: linear-gradient(180deg, #fff 0%, #dfb76c 100%);
    box-shadow: 0 0 26px rgba(223,183,108,.6), 0 4px 0 #8c6d32;
    transform: translateY(-2px);
}
.au-submit:active { transform: translateY(2px); box-shadow: 0 2px 0 #8c6d32; }

.au-foot {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid rgba(243,229,171,.14);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-family: 'Cairo', sans-serif;
    font-size: 12.5px;
}
.au-foot a {
    color: var(--op-accent-2, #dfb76c);
    font-weight: 700;
    text-decoration: none;
    transition: color .2s;
}
.au-foot a:hover { color: #fff; text-shadow: 0 0 10px rgba(223,183,108,.6); }

.au-alert {
    border-radius: 11px;
    padding: 12px 15px;
    margin-bottom: 20px;
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    border: 1px solid;
}
.au-alert ul { margin: 0; padding-inline-start: 18px; }
.au-alert.error { background: rgba(231,76,60,.12); border-color: rgba(231,76,60,.42); color: #ff8f8f; }
.au-alert.ok    { background: rgba(46,204,113,.12); border-color: rgba(46,204,113,.42); color: #7ff0b4; }

/* background flame used by the 2FA screen */
.au-flame {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
    opacity: .1;
    font-size: 240px;
    animation: auFlame 2.6s ease-in-out infinite alternate;
    z-index: 0;
}
@keyframes auFlame {
    0%   { transform: scale(1) translateY(0); opacity: .08; }
    50%  { transform: scale(1.05) translateY(-6px); opacity: .14; }
    100% { transform: scale(1) translateY(0); opacity: .08; }
}

@media (max-width: 780px) {
    .au-wrap { padding: 26px 12px 46px; }
    .au-card { padding: 28px 20px 24px; border-radius: 16px; }
    .au-card h1 { font-size: 19px; letter-spacing: 1.4px; }
    .au-submit { padding: 13px; font-size: 13px; letter-spacing: 1.4px; }
}
