/* ================================================
   AdHunt — Company Auth Pages (Register / Login)
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Lato:wght@400;700&display=swap');

:root {
    --gold:        #ffd700;
    --gold-dark:   #c9a800;
    --gold-glow:   rgba(255, 215, 0, 0.35);
    --cyan:        #36d6c3;
    --dark:        #0d1117;
    --dark-card:   #151d2b;
    --dark-surface:#1a2436;
    --text:        #e8e4dc;
    --text-muted:  #8896a8;
    --border:      rgba(255, 215, 0, 0.08);
    --border-warm: rgba(255, 215, 0, 0.15);
    --red:         #ef4444;
    --green:       #22c55e;
    --font-h:      'Cinzel', serif;
    --font-b:      'Lato', sans-serif;
    --radius:      14px;
    --radius-sm:   8px;
}

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

body {
    font-family: var(--font-b);
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Treasure map background */
.auth-bg {
    position: fixed;
    inset: 0;
    background: url('/img/background.png') center/cover no-repeat;
    z-index: 0;
}

.auth-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(
        170deg,
        rgba(13,17,23,0.92) 0%,
        rgba(13,17,23,0.85) 50%,
        rgba(13,17,23,0.95) 100%
    );
    z-index: 1;
}

/* Centered wrapper */
.auth-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 2rem 1.5rem;
}

/* Card */
.auth-card {
    width: 100%;
    max-width: 520px;
    background: rgba(21,29,43,0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-warm);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.4),
        0 0 80px rgba(255,215,0,0.03);
}

/* Logo */
.auth-logo {
    display: block;
    text-align: center;
    margin-bottom: 1.5rem;
}
.auth-logo img {
    height: 38px;
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.35));
    transition: filter 0.3s;
}
.auth-logo:hover img {
    filter: drop-shadow(0 0 18px rgba(255, 215, 0, 0.55));
}

/* Heading */
.auth-card h1 {
    font-family: var(--font-h);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold);
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}
.auth-sub strong {
    color: var(--gold);
}

/* Alerts */
.auth-alert {
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    line-height: 1.5;
}
.auth-alert p + p { margin-top: 0.25rem; }

.auth-alert-error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.25);
    color: #fca5a5;
}

.auth-alert-success {
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.25);
    color: #86efac;
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
}

.req { color: var(--gold); }
.opt { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--text-muted); font-size: 0.75rem; }

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    font-family: var(--font-b);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(255,215,0,0.1);
}
.form-group input::placeholder {
    color: rgba(255,255,255,0.2);
}

/* File upload */
.file-upload {
    position: relative;
}
.file-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.file-upload-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px dashed rgba(255,255,255,0.12);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.file-upload:hover .file-upload-label {
    border-color: var(--gold);
    color: var(--text);
}
.file-upload-label svg {
    flex-shrink: 0;
    color: var(--gold);
    opacity: 0.6;
}

/* Avatar carousel */
.avatar-carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}
.avatar-carousel-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
}
.avatar-carousel-track {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.avatar-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,215,0,0.15);
    background: rgba(255,255,255,0.04);
    color: var(--gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    flex-shrink: 0;
}
.avatar-arrow svg {
    width: 18px;
    height: 18px;
}
.avatar-arrow:hover {
    background: rgba(255,215,0,0.1);
    border-color: var(--gold);
    transform: scale(1.1);
}
.avatar-carousel-display {
    width: 220px;
    height: 110px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}
.avatar-item {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
    pointer-events: none;
    border: 3px solid transparent;
}
.avatar-item.active {
    transform: translateX(0) scale(1.15);
    opacity: 1;
    z-index: 3;
    border-color: var(--gold);
    box-shadow: 0 0 24px rgba(255,215,0,0.2);
}
.avatar-item.prev {
    transform: translateX(-65px) scale(0.85);
    opacity: 0.4;
    z-index: 2;
}
.avatar-item.next {
    transform: translateX(65px) scale(0.85);
    opacity: 0.4;
    z-index: 2;
}
.avatar-item.hidden-left {
    transform: translateX(-100px) scale(0.6);
    opacity: 0;
    z-index: 1;
}
.avatar-item.hidden-right {
    transform: translateX(100px) scale(0.6);
    opacity: 0;
    z-index: 1;
}
.avatar-carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    max-width: 220px;
}
.avatar-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    transition: background 0.2s, transform 0.2s;
}
.avatar-dot.active {
    background: var(--gold);
    transform: scale(1.3);
}

/* Submit button */
.btn-submit {
    width: 100%;
    padding: 0.85rem;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, #ffd700 0%, #f0c000 100%);
    color: #111;
    border: 2px solid var(--gold);
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255,215,0,0.25);
}
.btn-submit:hover {
    background: linear-gradient(135deg, #ffe033 0%, #ffd700 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(255,215,0,0.35);
}

/* Links */
.auth-alt {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.auth-alt a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}
.auth-alt a:hover { color: #ffe566; }

.auth-back {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.8rem;
}
.auth-back a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.auth-back a:hover { color: var(--text); }

/* ============ RESPONSIVE ============ */
@media (max-width: 600px) {
    .auth-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    .auth-card h1 { font-size: 1.3rem; }
    .form-row {
        grid-template-columns: 1fr;
    }
    .auth-footer-inner {
        flex-direction: column;
        gap: 0.6rem;
    }
}

/* ============ FOOTER ============ */
.auth-footer {
    position: relative;
    z-index: 2;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border);
}

.auth-footer-inner {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.auth-footer-copy {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.auth-footer-lang {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.auth-footer-lang-link {
    display: flex;
    align-items: center;
    padding: 3px;
    border-radius: 4px;
    border: 1px solid transparent;
    opacity: 0.5;
    transition: opacity 0.2s, border-color 0.2s;
}

.auth-footer-lang-link:hover {
    opacity: 0.85;
    border-color: rgba(255,255,255,0.1);
}

.auth-footer-lang-link.active {
    opacity: 1;
    border-color: var(--gold);
}

.auth-flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

.auth-footer-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.auth-footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    opacity: 0.7;
    transition: color 0.2s, opacity 0.2s;
}

.auth-footer-links a:hover {
    color: var(--gold);
    opacity: 1;
}

.auth-footer-dot {
    color: var(--text-muted);
    opacity: 0.4;
}
