/* ==========================================
   AUTH PAGE — v2 (REGISTER / LOGIN / PASSWORD)
   Layout only — NO input/button duplication
========================================== */

/* Page wrapper */
.auth-page {
    display: flex;
    justify-content: center;
}

/* Centering wrapper */
.auth-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Card sizing */
.auth-card {
    width: 100%;
    max-width: 600px;
}

/* Card body refinement */
.auth-card-body {
    padding: 2.2rem 3rem;
}

/* Header */
.auth-header-group {
    text-align: center;
    margin-bottom: 1.6rem;
}

.auth-title {
    margin: 0;
}

.auth-subtitle {
    margin-top: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.auth-header-group--spaced .auth-subtitle {
    margin-top: 2.5rem;
}




/* Form spacing */
.auth-form {
    display: flex;
    flex-direction: column;
}

/* Button wrapper */
.auth-actions {
    margin-top: 1.4rem;
}

/* Footer */
.auth-footer {
    margin-top: 1rem;
    text-align: center;
}

.auth-footer-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.auth-message {
    margin-bottom: 1.6rem;
}

.auth-form .btn {
    margin-top: 1.8rem;
}

.auth-card--message {
    text-align: center;
}

.auth-card--message .auth-header-group {
    text-align: center;
}

.auth-card--message .auth-subtitle {
    text-align: center;
}
/* Общи стилове за контейнера и иконите */
.auth-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.2rem;
}

.auth-icon svg {
    width: 48px;
    height: 48px;
    opacity: 0.9;
}

/* --- АНИМАЦИЯ САМО ЗА ОТМЕТКАТА (Success) --- */
.auth-icon--success svg path {
    stroke-dasharray: 50; /* Малко по-голямо, за да е сигурно, че покрива отметката */
    stroke-dashoffset: 50;
    animation: drawCheck 0.6s ease forwards;
}

/* --- СТИЛ ЗА ПЛИКЧЕТО (Mail) --- */
/* Тук НЕ слагаме stroke-dasharray, за да не се реже */
.auth-icon--mail {
    color: var(--color-text-primary);
}

/* Ако все пак искаш и пликчето да се "рисува", ползвай по-голяма стойност */
.auth-icon--mail svg path,
.auth-icon--mail svg polyline {
    stroke-dasharray: 100; /* Пликчето е дълго, трябва по-голямо число */
    stroke-dashoffset: 100;
    animation: drawMail 0.8s ease forwards;
}

.turnstile-wrapper {
    min-height: 65px; /* Резервира точното място за Turnstile */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 28px 0 20px;
    padding: 14px;

    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-bg-main);
}

.turnstile-wrapper iframe {
    margin: 0 auto !important;
    display: block;
    max-width: 100%;
}

.turnstile-custom-error {
    color: var(--color-error-text, #b51227);
    font-size: 0.85rem;
    margin-top: 12px;
    text-align: center;
    padding: 8px;
    background-color: rgba(220, 53, 69, 0.05); /* Много лек червен фон за акцент */
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: start;
    flex-direction: column;

}

.password-wrapper input {
    width: 100%;
    padding-right: 45px; /* Място за бутона */
    /* Тук добави твоите стилове за input (border-radius, фонов цвят и т.н.) */
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8; /* Модерно сиво (Slate-400) */
    transition: color 0.2s ease;
}

.password-toggle-btn:hover {
    color: #334155; /* По-тъмно сиво при фокус */
}

.password-toggle-btn:focus {
    outline: none;
}

/* Когато паролата е видима, можем да променим цвета на иконата */
.password-toggle-btn.is-visible {
    color: #3b82f6; /* Акцентно синьо, ако проектът ти го позволява */
}

/* Password Requirements Styling — v2 */
.password-requirements {
    margin-top: 1rem;
    padding: 1.2rem;
    /* Използваме мекия бежов фон на сайта или леко сиво */
    background-color: var(--ui-bg-soft);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border-light);
    /* Добавяме съвсем лека сянка за дълбочина, типична за картите ти */
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

.requirements-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase; /* За по-изчистен "UI" вид */
    letter-spacing: 0.03em;
    color: var(--color-text-primary);
    margin-bottom: 0.8rem;
    display: block;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.4rem;
}

/* Използваме твоето бордо (--color-heart-active) за дискретен акцент */
.password-requirements li::before {
    content: "•";
    position: absolute;
    left: 0.3rem;
    color: var(--color-heart-active);
    font-weight: bold;
}

.password-requirements li:last-child {
    margin-bottom: 0;
}

/* Адаптация за малки екрани */
@media (max-width: 600px) {
    .password-requirements {
        padding: 1rem;
    }
    .password-requirements li {
        font-size: 0.8rem;
    }
}

/* Анимациите */
@keyframes drawCheck {
    to { stroke-dashoffset: 0; }
}

@keyframes drawMail {
    to { stroke-dashoffset: 0; }
}

/* Responsive */
@media (max-width: 600px) {
    .auth-card-body {
        padding: 1.8rem 1.4rem;
    }
    .turnstile-custom-error {
        margin-top: 10px;
        font-size: 0.9rem;
    }
}

