/* =========================================================
   AUTH — АВТОРИЗАЦІЯ
   ========================================================= */

.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 40px);
    padding: 20px 0;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    min-width: 0;
    padding: 28px 24px;
    border-top: 5px solid #f97316;
}

.auth-title {
    text-align: center;
    margin-bottom: 6px;
    border: none;
    color: #ea580c;
    font-size: 26px;
    font-weight: 800;
}

.auth-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 24px;
    font-size: 14px;
}


/* =========================================================
   ФОРМА
   ========================================================= */

.auth-wrapper #authForm {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-wrapper .form-step {
    display: none;
}

.auth-wrapper .form-step.active {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-wrapper .vertical {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}

.auth-wrapper .vertical label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.auth-wrapper .vertical input {
    width: 100%;
    min-width: 0;
    height: 56px;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.auth-wrapper .vertical input:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.auth-wrapper .password-field {
    position: relative;
    width: 100%;
}

.auth-wrapper .password-field input {
    padding-right: 60px;
}

.auth-wrapper .password-toggle {
    position: absolute;
    top: 4px;
    right: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
}

.auth-wrapper .password-toggle img {
    display: block;
    width: 24px;
    height: 24px;
}

.auth-wrapper .password-toggle:hover:not(:disabled) {
    background: #fff7ed;
}

.auth-wrapper .password-toggle:focus-visible {
    outline: 2px solid #EA580C;
    outline-offset: -2px;
}

.auth-wrapper .password-toggle:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}


/* =========================================================
   КНОПКА
   ========================================================= */

.auth-wrapper .btn-orange {
    background-color: #f97316;
    color: white;
    border: none;
    padding: 12px;
    min-height: 48px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    margin-top: 4px;
    transition: background 0.2s;
}

.auth-wrapper .btn-orange:hover {
    background-color: #ea580c;
}

.auth-wrapper .btn-orange:disabled {
    background-color: #fdba74;
    cursor: not-allowed;
}


/* =========================================================
   ПОСИЛАННЯ
   ========================================================= */

.auth-wrapper .btn-link {
    background: none;
    border: none;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    min-height: 44px;
    margin: 0;
    padding: 8px 4px;
    text-align: center;
}

.auth-wrapper .btn-link:hover:not(:disabled) {
    color: #ea580c;
    text-decoration: underline;
}

.auth-wrapper .btn-link:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.auth-wrapper .btn-orange:focus-visible,
.auth-wrapper .btn-link:focus-visible {
    outline: 2px solid #EA580C;
    outline-offset: 2px;
}

/* =========================================================
   ПОВІДОМЛЕННЯ
   ========================================================= */

.auth-wrapper .success-msg {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 15px;
}

.auth-wrapper .hint-text {
    display: block;
    color: #6c757d;
    font-size: 12px;
    margin-top: 4px;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 24px 20px;
    }

    .auth-title {
        font-size: 24px;
    }
}
