body.bg {
    min-height: 100vh;
    background: #181513 url('/assets/images/bg/header_bg.jpg') no-repeat center top;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Gilroy', 'Vollkorn', serif;
}

.center-wrapper {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 1rem 0;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.glass-card {
    background: rgba(24, 21, 19, 0.92);
    border-radius: 16px;
    border: 2px solid #bfa76a;
    box-shadow: 0 8px 24px #0008, 0 1px 6px #bfa76a33;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2rem 1rem;
    max-width: 95vw;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 0.7s cubic-bezier(.23,1.01,.32,1) 1;
    margin: 0 auto;
    box-sizing: border-box;
}

.glass-logo {
    width: 70px;
    height: 70px;
    border-radius: 90px;
    background: #23201e;
    box-shadow: 0 0 20px 0 #bfa76a99, 0 2px 8px #000a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    animation: glow 2.5s infinite alternate;
}

.glass-logo img {
    width: 120px;
    height: 120px;
    border-radius: 10px;
}

.title {
    color: #e7dac2;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 2px 8px #000a;
    line-height: 1.3;
}

.form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer {
    width: 100%;
    text-align: center;
    margin-top: 1.5rem;
    color: #e7dac2;
    font-size: 0.9rem;
    font-weight: 400;
}

.footer a {
    color: #bfa76a;
    text-decoration: underline;
    margin-left: 0.3rem;
    font-weight: 400;
    transition: color 0.18s;
}

.footer a:hover {
    color: #e7dac2;
}

.input-group {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 0.5rem;
}

.input-group label {
    color: #e7dac2;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
    display: block;
    text-align: left;
    font-weight: 500;
}

.input-group input,
.input-group select {
    width: 100%;
    border: 2px solid #bfa76a;
    border-radius: 12px;
    padding: 0.9rem 2.8rem 0.9rem 2.8rem;
    font-size: 1rem;
    background: #f6f6f6;
    color: #181513;
    outline: none;
    box-shadow: none;
    transition: border 0.2s, background 0.2s;
    text-align: left;
    box-sizing: border-box;
    font-family: inherit;
}

.input-group input:focus,
.input-group select:focus {
    border-color: #e7dac2;
    background: #fff;
}

.input-group .input-icon {
    position: absolute;
    left: 0.8rem;
    top: 65%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #bfa76a;
    pointer-events: none;
    z-index: 2;
    width: 1.1rem;
    height: 1.1rem;
}

.input-group .toggle-password {
    position: absolute;
    right: 0.8rem;
    top: 65%;
    transform: translateY(-50%);
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 1.1rem;
    width: 1.1rem;
    z-index: 2;
}

.birthdate-selects {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    align-items: stretch;
    width: 100%;
}

.birthdate-selects select {
    width: 100%;
    border: 2px solid #bfa76a;
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    font-size: 1rem;
    background: #f6f6f6;
    color: #181513;
    outline: none;
    box-shadow: none;
    transition: border 0.2s;
    text-align: left;
    box-sizing: border-box;
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #e7dac2;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

.check input[type="checkbox"] {
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.links {
    width: 100%;
    text-align: end;
}

.links a {
    color: #bfa76a;
    text-decoration: underline;
    font-weight: 400;
    transition: color 0.18s;
    font-size: 0.9rem;
}

.links a:hover {
    color: #e7dac2;
}

.btn {
    width: 100%;
    padding: 1rem 0;
    border-radius: 12px;
    background: linear-gradient(90deg,#bfa76a 60%,#e7dac2 100%);
    color: #181513;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border: none;
    box-shadow: 0 2px 8px #bfa76a33;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    font-family: inherit;
    margin-top: 0.5rem;
}

.btn:hover {
    background: linear-gradient(90deg,#e7dac2 60%,#bfa76a 100%);
    color: #bfa76a;
    box-shadow: 0 4px 18px #bfa76a55, 0 2px 12px #00000033;
}



/* Inline → classes (para CSP sem 'unsafe-inline') */
.form--narrow { max-width: 420px; margin: 0 auto; }
.text-center { text-align: center; }
.mt-6 { margin-top: 1.5em; }
.text-md { font-size: 1.08em; }
.text-sm { font-size: 1em; }

.invalid-feedback {
    color: #ff5555;
    font-size: 0.98em;
    display: block;
    margin-top: 2px;
}

.field-hint {
    color: rgba(231, 218, 194, 0.78);
    font-size: 0.83rem;
    line-height: 1.45;
    margin-top: 0.45rem;
}

.register-terms {
    align-items: flex-start;
    gap: 0.7rem;
}

.register-terms label {
    margin-bottom: 0;
    color: #e7dac2;
    line-height: 1.5;
}

.register-terms .links {
    text-align: left;
}

.alert-error {
    margin-bottom: 10px;
    color: #c00;
    text-align: center;
}

.alert-success {
    margin-bottom: 10px;
    color: #2a2;
    text-align: center;
}

.alert-primary {
    background: #23201a;
    border: 1px solid #bfa76a;
    color: #bfa76a;
    padding: 1.2em 1em 1em 1em;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1.2em;
}

.alert-warn {
    background: #2d2617;
    color: #ffb300;
    padding: 1em 1em;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 1.2em;
}

.alert-danger {
    background: #2d2617;
    color: #ff5555;
    padding: 1em 1em;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 1.2em;
}

.visually-hidden {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.fallback-captcha {
    margin-bottom: 0.7rem;
    width: 100%;
}

.soma-captcha-label {
    color: #bfa76a;
    font-size: 1.05em;
    font-weight: 600;
}

.fallback-captcha-input {
    margin-top: 0.5rem;
    width: 120px;
}

.password-strength-wrapper {
    width: 100%;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.password-strength-bar {
    width: 100%;
    height: 6px;
    background: #222;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.3rem;
}

.password-strength-fill {
    height: 100%;
    width: 0%;
    background: #e74c3c;
    transition: width 0.3s, background 0.3s;
}

.password-strength-text {
    font-size: 0.85rem;
    margin-top: 0.2rem;
    color: #bfa76a;
    width: 100%;
    text-align: left;
}

.auth-legal-links {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.92rem;
}

.auth-legal-links a {
    color: #f3c969;
    text-decoration: none;
}

.auth-legal-links a:hover {
    color: #ffe29b;
}

.auth-legal-button {
    background: none;
    border: 0;
    color: #f3c969;
    cursor: pointer;
    padding: 0;
}

.auth-legal-button:hover {
    color: #ffe29b;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #bfa76a;
    margin: 1.5rem 0 1rem 0;
    letter-spacing: 0.03em;
    text-align: left;
    border: none;
    text-shadow: 0 2px 8px #000a;
    line-height: 1.3;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, #bfa76a 0%, #bfa76a33 100%);
    margin-top: 0.4em;
    border-radius: 2px;
    opacity: 0.7;
}

.gender-options {
    display: flex;
    flex-direction: row;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.gender-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    font-size: 0.95rem;
    margin-bottom: 0;
    text-align: left;
}

.recaptcha-container {
    display: flex;
    justify-content: center;
}

/* Tablet */
@media (min-width: 768px) {
    .glass-card {
        padding: 3rem 2rem;
        max-width: 55vw;
        border-radius: 20px;
        border: 2.2px solid #bfa76a;
    }

    .glass-logo {
        width: 80px;
        height: 80px;
        margin-bottom: 2rem;
    }

    .title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .form {
        gap: 1.2rem;
        max-width: 600px;
        margin: 0 auto;
    }

    .birthdate-selects {
        flex-direction: row;
        gap: 0.8rem;
    }

    .birthdate-selects select {
        flex: 1 1 0;
        min-width: 0;
    }

    .gender-options {
        flex-direction: row;
        gap: 1.5rem;
    }

    .input-group input,
    .input-group select {
        padding: 1rem 3rem 1rem 3rem;
        font-size: 1.05rem;
    }

    .btn {
        padding: 1.1rem 0;
        font-size: 1.15rem;
    }

    .section-title {
        font-size: 1.2rem;
        margin: 2rem 0 1.2rem 0;
    }
}

@media (min-width: 1440px) {
    .glass-card {
        padding: 3rem 2rem;
        max-width: 35vw;
        border-radius: 20px;
        border: 2.2px solid #bfa76a;
    }
}


@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
    from { box-shadow: 0 0 24px 0 #bfa76a99, 0 2px 12px #000a; }
    to { box-shadow: 0 0 36px 8px #e7dac2cc, 0 2px 12px #bfa76a77; }
}