/* AUTH - login / register / forgot / reset pages */

/* -- Background ------------------------------------------------ */
body.auth-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #08080f;
}

.auth-bg {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background:
        url('/assets/images/oilcorp_bg.png') center/cover no-repeat fixed;
    background-color: #08080f;
}

/* Auth language switcher / Przelacznik jezyka na ekranach logowania */
.auth-language {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 30;
    display: inline-flex;
    align-items: center;
}

.auth-language-select {
    width: auto;
    min-width: 64px;
    height: 34px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(200,168,75,.32);
    background-color: rgba(13,13,26,.78);
    color: #e8cc7a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1;
    text-align: center;
    text-align-last: center;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.auth-language-select:focus {
    border-color: #c8a84b;
}

/* -- Card container -------------------------------------------- */
.login-container {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 10;
    padding: 0 16px;
    box-sizing: border-box;
}

/* -- Register container (taller card, sits higher) ------------- */
.register-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -20%);
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 10;
    padding: 0 16px;
    box-sizing: border-box;
    overflow-y: auto;
    max-height: 90vh;
}

/* -- Brand header (OILCORP logo above card) -------------------- */
.auth-brand {
    text-align: center;
    user-select: none;
}

.auth-brand-logo {
    font-size: 2.2rem;
    color: #c8a84b;
    line-height: 1;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 12px rgba(200,168,75,.5));
}

.auth-brand-name {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: .3em;
    color: #c8a84b;
    text-shadow: 0 0 30px rgba(200,168,75,.4), 0 2px 8px rgba(0,0,0,.8);
    line-height: 1;
}

.auth-brand-sub {
    font-size: .85rem;
    letter-spacing: .35em;
    color: rgba(232,232,240,.45);
    text-transform: uppercase;
    margin-top: 6px;
}

/* -- Card ------------------------------------------------------ */
.login-card {
    background: rgba(13,13,26,.92);
    border: 1px solid rgba(200,168,75,.22);
    border-radius: 12px;
    padding: 36px 32px 32px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 24px 64px rgba(0,0,0,.6), 0 0 0 1px rgba(200,168,75,.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.login-card h1 {
    margin: 0 0 6px;
    font-size: 1.55rem;
    color: #c8a84b;
    text-align: center;
    letter-spacing: .04em;
}

.login-subtitle {
    margin: 0 0 24px;
    font-size: .9rem;
    color: rgba(232,232,240,.5);
    text-align: center;
}

/* -- Form elements --------------------------------------------- */
.form-group { margin-bottom: 16px; }

.form-label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: rgba(232,232,240,.65);
    margin-bottom: 6px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.form-input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 7px;
    color: #e8e8f0;
    font-size: .95rem;
    padding: 10px 14px;
    transition: border-color .2s;
    outline: none;
}

.form-input:focus {
    border-color: rgba(200,168,75,.55);
    background: rgba(255,255,255,.07);
}

.form-input::placeholder { color: rgba(232,232,240,.3); }

/* -- Password wrapper ------------------------------------------ */
.password-wrap { position: relative; }
.password-wrap .form-input { padding-right: 44px; }

.btn-show-pass {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    opacity: .5;
    transition: opacity .15s;
    padding: 2px 4px;
    line-height: 1;
}
.btn-show-pass:hover { opacity: .85; }
.auth-eye-icon {
    width: 18px;
    height: 18px;
    display: block;
    pointer-events: none;
}


/* -- Checkbox groups ------------------------------------------- */
.form-check-group { margin-bottom: 12px; }

.form-check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: .875rem;
    color: rgba(232,232,240,.7);
    line-height: 1.5;
}

.form-check-input {
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin-top: 2px;
    accent-color: #c8a84b;
    cursor: pointer;
}

.form-check-required { color: #e05555; font-weight: 700; margin-left: 2px; }

.form-check-group--remember {
    margin: -4px 0 16px;
}

/* -- Forgot link ----------------------------------------------- */
.forgot-link { margin: 0 0 16px; font-size: .82rem; text-align: right; }

/* Informacja o zapamiętywaniu hasła / Remember-password info note */
.login-remember-note {
    font-size: .8rem;
    color: rgba(200,168,75,.75);
    margin: 0 0 14px;
    text-align: center;
}

/* -- Buttons ---------------------------------------------------- */
.btn-full { width: 100%; justify-content: center; }

/* -- Footer link ----------------------------------------------- */
.login-footer {
    margin: 20px 0 0;
    font-size: .85rem;
    color: rgba(232,232,240,.5);
    text-align: center;
}

/* -- Alerts on auth pages -------------------------------------- */
.login-card .alert {
    border-radius: 7px;
    padding: 10px 14px;
    font-size: .875rem;
    margin-bottom: 16px;
}

.login-card .alert-error {
    background: rgba(224,85,85,.1);
    border: 1px solid rgba(224,85,85,.3);
    color: #f08080;
}

.login-card .alert-success {
    background: rgba(78,201,122,.08);
    border: 1px solid rgba(78,201,122,.25);
    color: #5ddba0;
}

/* -- Starter pack aside ---------------------------------------- */
.starter-pack {
    margin-top: 24px;
    border-top: 1px solid rgba(255,255,255,.06);
    padding-top: 16px;
}

.starter-pack h3 {
    font-size: .8rem;
    color: rgba(232,232,240,.45);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 0 0 8px;
}

.starter-pack ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: .85rem;
    color: rgba(232,232,240,.65);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* -- Auth card (verify_email.php etc.) ------------------------- */
.auth-card {
    background: rgba(13,13,26,.92);
    border: 1px solid rgba(200,168,75,.22);
    border-radius: 12px;
    padding: 40px 32px;
    width: 100%;
    max-width: 460px;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0,0,0,.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.auth-logo { font-size: 1.4rem; font-weight: 700; color: #c8a84b; letter-spacing: .06em; margin-bottom: 20px; }
.auth-heading { font-size: 1.35rem; color: #e8e8f0; margin: 0 0 12px; }
.auth-heading--error { color: #e05555; }
.auth-sub { font-size: .9rem; color: rgba(232,232,240,.55); line-height: 1.6; margin: 0 0 8px; }

/* -- Link styles ----------------------------------------------- */
.link-primary { color: #c8a84b; text-decoration: none; transition: opacity .15s; }
.link-primary:hover { opacity: .75; }

/* -- Fade-in animation ----------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn .35s ease both; }

/* -- Reset password specifics ---------------------------------- */
.reset-token-error { text-align: center; padding: 16px; color: rgba(232,232,240,.6); }

/* -- Responsive ------------------------------------------------ */
@media (max-width: 480px) {
    .login-card,
    .auth-card { padding: 28px 20px 24px; border-radius: 10px; }

    .auth-bg { align-items: flex-start; padding: 16px 12px 32px; }
    .auth-language { top: 14px; right: 14px; }

    .auth-brand-name { font-size: 2rem; letter-spacing: .2em; }
    .auth-brand-sub  { font-size: .75rem; }
}
