/* ============================================
   Modal Auth — vc.ru Auth CSS
   Used in the auth modal window
   ============================================ */

.auth {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100%;
    text-align: center;
}

@media all and (min-width: 640px) {
    .auth {
        min-height: 474px;
    }
}

.auth__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto 0;
}

@media all and (min-width: 640px) {
    .auth__body {
        margin: 0 0 auto;
    }
}

.auth__body .button--with-icon {
    padding-right: 0;
    position: relative;
}

.auth__body .button--with-icon .icon {
    position: absolute;
    left: 0;
}

.auth__header {
    display: grid;
    justify-items: center;
    grid-gap: 20px;
    gap: 20px;
    margin-bottom: 48px;
}

.auth__header-title {
    font-weight: 500;
    font-size: 22px;
    line-height: 30px;
}

.auth__header-title:first-child {
    margin-top: 48px;
}

.auth__content {
    display: grid;
    grid-gap: 16px;
    gap: 16px;
    width: 300px;
    max-width: 100%;
}

.auth__secondary {
    margin-top: 16px;
}

.auth__footer {
    font-size: 13px;
    line-height: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    width: 320px;
    max-width: 100%;
    min-height: 94px;
    padding-bottom: 20px;
    white-space: pre-line;
    color: var(--theme-color-text-secondary);
}

.auth__footer .link-button {
    font-size: 13px;
    line-height: 18px;
}

.auth a {
    color: var(--theme-color-signal-active-default);
    cursor: pointer;
}

@media (hover: hover) {
    .auth a:hover {
        color: var(--theme-color-signal-active-dark);
    }
}

/* Auth form styles */
.auth-form {
    display: grid;
    grid-gap: 16px;
    gap: 16px;
}

/* Eye icon style for password field */
.field__icon--clickable {
    cursor: pointer;
}

.field__icon--active use {
    opacity: 0.7;
}

/* Step transition animation — placeholder */
.will-be-animated {
    /* Animation already exists in main.css (modal-enter) */
}

/* Form error message */
.auth-form__error {
    color: var(--theme-color-status-error);
    font-size: 13px;
    line-height: 18px;
    text-align: center;
}
