/* /home/to_denis_moroz/oksana/oksana/static/css/auth-forms.css */
/* Стили для форм авторизации и регистрации */

body.auth-body {
    background-color: #f5f7fa;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

.auth-page {
    width: 100%;
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background-color: #f5f7fa;
    box-sizing: border-box;
    padding-top: 60px;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(37, 50, 74, 0.12);
    padding: 32px;
    text-align: center;
    margin: 30px auto;
    box-sizing: border-box;
}

.auth-logo {
    margin-bottom: 24px;
}

.auth-logo img {
    height: 60px;
    width: auto;
}

.auth-title {
    font-size: 24px;
    color: #25324A;
    margin-bottom: 24px;
    font-weight: 600;
}

.auth-form {
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #25324A;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #dbe2ef;
    border-radius: 8px;
    background-color: #f9fafc;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #25324A;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(37, 50, 74, 0.1);
}

.auth-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background-color: #25324A;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.auth-btn:hover {
    background-color: #344565;
    transform: translateY(-1px);
}

.auth-links {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: #6B7280;
}

.auth-links a {
    color: #25324A;
    text-decoration: none;
    font-weight: 500;
}

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

.auth-separator {
    margin: 16px 0;
    text-align: center;
    position: relative;
}

.auth-separator::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e5e7eb;
}

.auth-separator span {
    position: relative;
    z-index: 1;
    padding: 0 12px;
    background-color: #fff;
    color: #6B7280;
    font-size: 14px;
}

.error-message {
    color: #e53e3e;
    font-size: 14px;
    margin-bottom: 16px;
    padding: 10px;
    background-color: #fee2e2;
    border-radius: 6px;
    font-weight: 500;
}

/* Стили для переключателя пароля */
.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 10px;
    background-color: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    z-index: 5;
}

.password-toggle:hover {
    background-color: transparent;
}

.password-toggle:focus {
    outline: none;
    box-shadow: none;
}

.password-icon-visible,
.password-icon-hidden {
    width: 22px;
    height: 22px;
    stroke: #777;
    stroke-width: 1.5px;
    position: relative;
    top: 15px;
    /* Коррекция по вертикали */
}

/* Показываем нужную иконку в зависимости от состояния видимости пароля */
.password-toggle[data-visible="false"] .password-icon-visible {
    display: block;
}

.password-toggle[data-visible="false"] .password-icon-hidden {
    display: none;
}

.password-toggle[data-visible="true"] .password-icon-visible {
    display: none;
}

.password-toggle[data-visible="true"] .password-icon-hidden {
    display: block;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .auth-container {
        padding: 24px;
        margin: 20px 16px;
        border-radius: 12px;
        max-width: calc(100% - 32px);
    }

    .auth-title {
        font-size: 20px;
    }

    .form-control {
        padding: 10px 14px;
        font-size: 15px;
    }

    .auth-btn {
        padding: 12px;
        font-size: 15px;
    }
}