/* =============================================
   AUTH.CSS — стили страниц входа / регистрации
   Используется только auth-страницами (register.php, login.php и т.п.)
   ============================================= */

/* Базовые сбросы */
*, *::before, *::after {
    box-sizing: border-box;
}
html, body {
    margin: 0;
    padding: 0;
}
body {
    color: #535c69;
    font-family: "Helvetica Neue", Inter, Helvetica, Arial, sans-serif;
    font-size: 14px;
    background-color: #f2f4f6;
}
a {
    color: #535c69;
    text-decoration: none;
}
a:hover {
    color: #535c69;
    text-decoration: underline;
}

/* Центрирующая обёртка */
.auth-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 100vh;
    padding: 40px 20px;
}

/* Карточка формы */
.auth-box {
    box-sizing: border-box;
    width: 100%;
    max-width: 360px;
    background-color: #fff;
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.15);
}

/* Заголовок с логотипом */
.auth-title-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-bottom: 20px;
}
.auth-title {
    float: none;
    margin: 0;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 220;
}
.auth-title-logo {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
}

/* Поля ввода */
.popup-task-input {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: 36px;
    border: 1px solid #d5dbdf;
    border-radius: 5px;
    padding: 0 14px;
    margin-bottom: 10px;
    outline: none;
    font-family: inherit;
    font-size: inherit;
    color: #535c69;
    transition: border-color 0.15s;
}
.popup-task-input::placeholder {
    color: #7e858e;
}
.popup-task-input:hover,
.popup-task-input:focus {
    border-color: #b0b8be;
    color: #535c69;
}

/* Кнопка submit */
.popup-task-save {
    display: block;
    width: 100%;
    height: 36px;
    clear: both;
    color: #fff;
    line-height: 36px;
    margin-top: 10px;
    text-align: center;
    text-transform: uppercase;
    border-radius: 5px;
    border: none;
    background-color: #080;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    transition: background-color 0.2s;
}
.popup-task-save:hover {
    background-color: #070;
}
.popup-task-save:disabled {
    background-color: #aaa;
    cursor: default;
}

/* Подсказка под полем */
.auth-hint {
    color: #7e858e;
    margin-top: -4px;
    margin-bottom: 10px;
}

/* Подсветка ошибочного поля */
.auth-error {
    border-color: #f00 !important;
}

/* Сообщение об ошибке */
.auth-error-msg {
    color: #e00;
    margin-bottom: 10px;
    font-size: 0.92em;
}

/* Разделитель "или через" */
.auth-or {
    color: #7e858e;
    text-align: center;
    margin: 16px 0 10px;
}

/* Социальные кнопки */
.auth-social {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    margin-bottom: 10px;
    border: 1px solid #d5dbdf;
    border-radius: 5px;
    color: #535c69;
    cursor: pointer;
    transition: border-color 0.2s;
    user-select: none;
}
.auth-social:hover {
    border-color: #c3c9cd;
}
.auth-social-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

/* Ссылки внизу (войти / зарегистрироваться) */
.auth-links {
    text-align: center;
    line-height: 2em;
    margin-top: 6px;
}

/* Пунктирная ссылка */
.dashed-link {
    text-decoration: none;
    border-bottom: 1px dashed #535c69;
    cursor: pointer;
    transition: border-bottom-color 0.1s;
}
.dashed-link:hover {
    color: #000;
    border-bottom-color: #000;
    text-decoration: none;
}

/* Блок со сгенерированным паролем (успешная регистрация) */
.auth-password-reveal {
    background: #f7f9fa;
    border: 1px solid #d5dbdf;
    border-radius: 5px;
    padding: 12px 16px;
    margin: 12px 0;
    text-align: center;
    font-size: 1.3em;
    letter-spacing: 0.08em;
    font-family: monospace;
    color: #333;
    word-break: break-all;
}
.auth-password-warning {
    color: #c00;
    font-size: 0.85em;
    text-align: center;
    margin-top: 4px;
    margin-bottom: 14px;
}

/* Блок успешного сообщения */
.auth-message {
    text-align: center;
    line-height: 1.6em;
}
