/* ═══════════════════════════════════════════════════════════
   Cinematic Auth Pages (Login / Register)
   ═══════════════════════════════════════════════════════════ */

/* ── Page Layout ── */
.auth-page {
    display: flex;
    min-height: 100vh;
    background: #050710;
    overflow: hidden;
}

/* ── Left Art Panel ── */
.auth-art {
    flex: 1 1 55%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-art-bg {
    position: absolute;
    inset: 0;
    background: url(../images/wallpaper/new-page-row-back2.jpg) center center no-repeat;
    background-size: cover;
    filter: brightness(0.7) saturate(1.1);
    animation: authArtZoom 30s ease-in-out infinite alternate;
}
@keyframes authArtZoom {
    0%   { transform: scale(1); }
    100% { transform: scale(1.08); }
}
.auth-art-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5,7,16,0.3) 0%, rgba(5,7,16,0.1) 40%, rgba(5,7,16,0.6) 100%);
}
.auth-art-fade {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 200px;
    background: linear-gradient(to right, transparent, #050710);
}
.auth-art-bottom-fade {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(to top, #050710, transparent);
}
.auth-art-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
}
.auth-art-logo {
    max-width: 400px;
    width: 80%;
    filter: drop-shadow(0 4px 30px rgba(0,0,0,0.6));
    margin-bottom: 30px;
}
.auth-art-tagline {
    color: #ffdda9;
    font-family: philosopher, sans-serif;
    font-size: 20px;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 2px 20px rgba(0,0,0,0.8);
    opacity: 0.9;
}
.auth-art-sub {
    color: #b0a89e;
    font-size: 13px;
    margin-top: 8px;
    letter-spacing: 2px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

/* ── Floating Embers ── */
.auth-embers { position:absolute; inset:0; pointer-events:none; z-index:1; overflow:hidden; }
.auth-ember {
    position:absolute; width:3px; height:3px; background:#c88052; border-radius:50%;
    box-shadow:0 0 6px 2px rgba(200,128,82,0.5); animation:authEmberFloat linear infinite; opacity:0;
}
@keyframes authEmberFloat {
    0%   { transform:translateY(0) scale(1); opacity:0; }
    10%  { opacity:0.8; }
    50%  { transform:translateY(-120px) scale(1.3); opacity:1; }
    100% { transform:translateY(-250px) scale(0.5); opacity:0; }
}
.auth-ember:nth-child(1) { left:10%; bottom:10%; animation-duration:5s; animation-delay:0s; }
.auth-ember:nth-child(2) { left:25%; bottom:5%;  animation-duration:6.5s; animation-delay:1.2s; }
.auth-ember:nth-child(3) { left:45%; bottom:15%; animation-duration:4.5s; animation-delay:0.5s; }
.auth-ember:nth-child(4) { left:65%; bottom:8%;  animation-duration:5.5s; animation-delay:2s; }
.auth-ember:nth-child(5) { left:80%; bottom:12%; animation-duration:4s; animation-delay:1s; }
.auth-ember:nth-child(6) { left:55%; bottom:3%;  animation-duration:7s; animation-delay:3s; }
.auth-ember:nth-child(7) { left:35%; bottom:20%; animation-duration:6s; animation-delay:0.8s; }
.auth-ember:nth-child(8) { left:90%; bottom:6%;  animation-duration:5.2s; animation-delay:2.5s; }

/* ── Right Form Panel ── */
.auth-form-panel {
    flex: 0 0 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 55px;
    position: relative;
    background: #050710;
    overflow-y: auto;
}
.auth-form-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(200,128,82,0.3), transparent);
}

/* ── Nav inside form panel ── */
.auth-nav {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 5;
}
.auth-nav a {
    color: #696868;
    font-size: 12px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border: 1px solid rgba(200,128,82,0.12);
    border-radius: 3px;
    transition: all 0.3s;
}
.auth-nav a:hover {
    color: #ffdda9;
    border-color: rgba(200,128,82,0.4);
    background: rgba(200,128,82,0.06);
}

/* ── Form Header ── */
.auth-form-head {
    margin-bottom: 35px;
}
.auth-form-title {
    color: #ffdda9;
    font-size: 28px;
    font-family: philosopher, sans-serif;
    letter-spacing: 2px;
    margin-bottom: 6px;
}
.auth-form-subtitle {
    color: #696868;
    font-size: 13px;
    letter-spacing: 1px;
}

/* ── Form Styling ── */
.auth-form-group {
    margin-bottom: 22px;
    position: relative;
}
.auth-form-label {
    display: block;
    color: #b0a89e;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    font-weight: 600;
}
.auth-form-input {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(200,128,82,0.12);
    border-radius: 4px;
    padding: 14px 16px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s;
    outline: none;
    box-sizing: border-box;
}
.auth-form-input:focus {
    border-color: rgba(200,128,82,0.5);
    background: rgba(200,128,82,0.04);
    box-shadow: 0 0 15px rgba(200,128,82,0.08);
}
.auth-form-input::placeholder {
    color: #4a4a4a;
}

/* Input with check button */
.auth-input-row {
    display: flex;
    gap: 8px;
}
.auth-input-row .auth-form-input {
    flex: 1;
}
.auth-check-btn {
    flex: 0 0 90px;
    background: rgba(200,128,82,0.1);
    border: 1px solid rgba(200,128,82,0.2);
    border-radius: 4px;
    color: #c88052;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}
.auth-check-btn:hover {
    background: rgba(200,128,82,0.2);
    border-color: rgba(200,128,82,0.4);
}

/* Availability feedback */
.auth-avail {
    font-size: 11px;
    margin-top: 4px;
    min-height: 16px;
}

/* Hints under fields */
.auth-hint {
    color: #4a4a4a;
    font-size: 11px;
    margin-top: 5px;
    line-height: 1.4;
}

/* Select dropdown */
.auth-form-select {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(200,128,82,0.12);
    border-radius: 4px;
    padding: 14px 16px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s;
    outline: none;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23696868' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}
.auth-form-select:focus {
    border-color: rgba(200,128,82,0.5);
    background-color: rgba(200,128,82,0.04);
}
.auth-form-select option {
    background: #0a0d16;
    color: #fff;
}

/* ── Submit Button ── */
.auth-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #c88052, #a5623c);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 15px;
    font-family: philosopher, sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}
.auth-submit-btn:hover {
    background: linear-gradient(135deg, #d99363, #c88052);
    box-shadow: 0 4px 25px rgba(200,128,82,0.3);
    transform: translateY(-1px);
}
.auth-submit-btn:active {
    transform: translateY(0);
}
.auth-submit-btn::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(transparent, rgba(255,255,255,0.08), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
    opacity: 0;
}
.auth-submit-btn:hover::after {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

/* ── Links Row ── */
.auth-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.auth-links a {
    color: #696868;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.3s;
}
.auth-links a:hover {
    color: #c88052;
}
.auth-links-sep {
    color: #2a2a2a;
    font-size: 12px;
}

/* ── Divider ── */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    gap: 12px;
}
.auth-divider-line {
    flex: 1;
    height: 1px;
    background: rgba(200,128,82,0.1);
}
.auth-divider-text {
    color: #4a4a4a;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ── Switch link (bottom) ── */
.auth-switch {
    text-align: center;
    margin-top: 30px;
    color: #696868;
    font-size: 13px;
}
.auth-switch a {
    color: #c88052;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}
.auth-switch a:hover {
    color: #ffdda9;
}

/* ── Alert styling ── */
.auth-alert {
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 20px;
    border: 1px solid;
}
.auth-alert-error {
    background: rgba(255,68,68,0.08);
    border-color: rgba(255,68,68,0.2);
    color: #ff6b6b;
}
.auth-alert-success {
    background: rgba(74,192,141,0.08);
    border-color: rgba(74,192,141,0.2);
    color: #4ac08d;
}

/* ── Decorative Corner Runes ── */
.auth-rune-tl, .auth-rune-br {
    position: absolute;
    width: 60px;
    height: 60px;
    opacity: 0.06;
    pointer-events: none;
}
.auth-rune-tl {
    top: 30px; left: 30px;
    border-top: 2px solid #c88052;
    border-left: 2px solid #c88052;
}
.auth-rune-br {
    bottom: 30px; right: 30px;
    border-bottom: 2px solid #c88052;
    border-right: 2px solid #c88052;
}

/* ═══ Responsive ═══ */
@media (max-width: 1024px) {
    .auth-art { flex: 1 1 40%; }
    .auth-form-panel { flex: 0 0 420px; padding: 50px 40px; }
}
@media (max-width: 768px) {
    .auth-page { flex-direction: column; }
    .auth-art {
        flex: none;
        height: 250px;
    }
    .auth-art-fade { display: none; }
    .auth-art-bottom-fade { height: 80px; }
    .auth-form-panel {
        flex: 1;
        padding: 40px 30px;
    }
    .auth-art-logo { max-width: 250px; }
    .auth-art-tagline { font-size: 16px; }
}
@media (max-width: 480px) {
    .auth-form-panel { padding: 30px 20px; }
    .auth-form-title { font-size: 22px; }
    .auth-input-row { flex-direction: column; }
    .auth-check-btn { flex: none; padding: 10px; }
}
