/* Стили из вашего эталонного дизайна + классы для сообщений */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');


body {
    font-family: "Outfit", sans-serif;
    background-color: #f9f9f9;
    color: #111827;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 0 16px;
    box-sizing: border-box;
}

.form-container {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 24px 0;
}

.input-field,
.btn {
    width: 100%;
    border-radius: 9999px;
    font-size: 16px;
    padding: 12px 16px;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
}

.input-field {
    margin-bottom: .75rem;
    background-color: #f9fafb;
    width: 342px;
    height: 52px;
    max-width: 100%;
}

.input-field:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.input-field::placeholder {
    color: #6b7280;
}

.btn {
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #374151;
    border-color: #374151;
}

.auth-link {
    color: #0d0d0d;
    margin-bottom: 16px;
    width: 100%;
    max-width: 342px;
    text-align: center;
    font-size: 1rem;
    line-height: 1.5rem;
}

.auth-link a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.auth-link a:hover {
    text-decoration: underline;
}

.forgot-password{
    font-size: 14px;
    color: #6b7280;
    width: 100%;
    max-width: 342px;
    text-align: left;
    padding-left: .75rem;
    margin: 0;
}

.divider {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 342px;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 24px;
}

.divider::before,
.divider::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background-color: #e5e7eb;
}

.divider span {
    padding: 0 16px;
    font-size: 13px;
    font-weight: 510;
    color: black;
}

.social-login {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.social-btn {
background-color: #ffffff;
    color: #111827;
    border: 1px solid #d1d5db;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    padding: 0 1.5rem;
    appearance: none;
    display: flex;
    align-items: center;
    height: 3.25rem;
    cursor: pointer;
    transition: background-color .1s ease;
    font-size: 1rem;
    line-height: 1.5rem;
    text-align: center;
    font-family: inherit;
    font-weight: 400;
    text-decoration: none;
}


.social-btn:hover {
    background-color: #f9fafb;
}

.social-btn img {
    width: 20px;
    height: 20px;
}

/* Дополнительные классы для JS */
.hidden {
    display: none;
}

.feedback-message {
    color: #16a34a;
    font-size: 14px;
    margin-bottom: 16px;
    text-align: center;
    min-height: 20px;
}

.error-message {
    color: #dc2626;
    font-size: 14px;
    text-align: center;
    min-height: 1.5rem;
}



/* 7. Нижняя часть (футер) */
.footer-links {
    margin-top: 40px;
    text-align: center;
}
.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    margin: 0 8px;
    font-size: .875rem;
    line-height: 1.25rem;
}
.footer-links a:hover {
    text-decoration: underline;
}


/* Form */

.form-direction{
    display: flex;
    flex-direction: column;
    align-items: center;
}


.btn-primary {
    background-color: #131313;
    color: #ffffff;
    border-color: #111827;
    margin-bottom: 16px;
    width: 342px;
    max-width: 100%;
    height: 3.25rem;
    font-size: 1rem;
    line-height: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 400;
}


._separator_1k32w_80:before {
    content: " | ";
    color: #9ca3af;
}

.logo-container {
    width: 150px;
    position: static; /* Remove absolute positioning */
    margin-bottom: 24px; /* Add space between logo and form */
    align-self: center; /* Center the logo */
}

@media (max-width: 600px) {
    .logo-container {
        position: static; /* Remove absolute positioning */
        margin-bottom: 24px; /* Add space between logo and form */
        align-self: center; /* Center the logo */
    }
}



/*----*/

/* ADD THESE STYLES TO YOUR CSS FILE */

/* Wrapper to position the password visibility toggle */
.password-wrapper {
    position: relative;
    width: 342px; /* Match input width */
    max-width: 100%;
    margin-bottom: .75rem; /* Original margin from input-field */
}

/* Adjust input field within the wrapper */
.password-wrapper .input-field {
    width: 100%;
    margin-bottom: 0; /* Margin is now on the wrapper */
    padding-right: 45px; /* Make space for the icon */
}

/* Style for the visibility toggle icon */
.toggle-password {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Styles for password requirements checklist */
#password-requirements {
    width: 100%;
    max-width: 342px;
    margin-top: -4px;
    margin-bottom: 12px;
    padding-left: 8px;
    font-size: 13px;
    color: #6b7280;
}

#password-requirements ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column-reverse;
    flex-wrap: wrap;
    gap: 4px 12px;
}

#password-requirements li {
    position: relative;
    padding-left: 18px;
    transition: color 0.2s ease-in-out;
}

/* Default state icon (invalid) */
#password-requirements li::before {
    content: '○';
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 11px;
}

/* Valid state style */
#password-requirements li.valid {
    color: #16a34a; /* Green */
}

/* Valid state icon */
#password-requirements li.valid::before {
    content: '✔';
    font-size: 12px;
    top: 0;
}