/*
|--------------------------------------------------------------------------
| Auth pages (Login / Register)
|--------------------------------------------------------------------------
*/
.auth {
    background-color: var(--color-white);
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 48px);
    width: 100%;
}

.auth__body {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.auth__card {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.auth__head {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    width: 100%;
}

.auth__title {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 24px;
    line-height: 28px;
    color: var(--color-black);
    text-align: center;
    margin: 0;
}

.auth__subtitle {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: var(--color-paragraph, var(--text-color));
    text-align: center;
    margin: 0;
}

.auth__group {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.auth__google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 40px;
    padding: 8px 12px;
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-radius: 6px;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 14px;
    line-height: 24px;
    color: var(--color-black);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.auth__google:hover {
    background-color: var(--gray-gradient);
}

.auth__google img {
    width: 18px;
    height: 18px;
    display: block;
}

.auth__divider {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.auth__divider::before,
.auth__divider::after {
    content: "";
    flex: 1 1 0;
    height: 1px;
    background-color: var(--color-gray-light);
}

.auth__divider span {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 14px;
    color: var(--color-paragraph, var(--text-color));
}

.auth__fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.auth__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.auth__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.auth__label {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 14px;
    line-height: 18px;
    color: var(--color-black);
}

.auth__error {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 12px;
    line-height: 18px;
    color: var(--color-red, #ff5963);
    text-align: right;
}

.auth__input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    background-color: var(--color-muted, #f9f9f9);
    border: 1px solid transparent;
    border-radius: 8px;
    transition: border-color 0.15s ease;
}

.auth__input-wrap:focus-within {
    border-color: var(--color-primary);
}

.auth__field.has-error .auth__input-wrap {
    border-color: var(--color-red, #ff5963);
    background-color: var(--color-white);
}

.auth__input {
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: var(--color-black);
    padding: 10px 12px;
    border-radius: inherit;
}

.auth__input::placeholder {
    color: var(--placeholder-text, #a6abb3);
}

/* Larger custom mask dots matching the Figma. The native password bullet
   scales with the input's font-size — bumping size + letter-spacing only
   while masked gives bigger, evenly-spaced discs without touching layout
   anywhere else. Switching back to type="text" (eye-toggle) drops the
   override automatically. */
.auth__input[type="password"] {
    font-size: 18px;
    line-height: 18px;
    letter-spacing: 2px;
}

.auth__input[type="password"]::placeholder {
    font-size: 14px;
    line-height: 18px;
    letter-spacing: normal;
}

.auth__input[type="password"]::-webkit-input-placeholder {
    font-size: 14px;
    line-height: 18px;
    letter-spacing: normal;
}

.auth__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: var(--placeholder-text, #a6abb3);
    margin-right: 8px;
}

.auth__toggle svg,
.auth__toggle img {
    width: 20px;
    height: 20px;
    display: block;
}

.auth__forget {
    align-self: flex-end;
    margin-top: 4px;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    color: var(--color-paragraph, var(--text-color));
    text-decoration: none;
}

.auth__forget:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.auth__actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    width: 100%;
}

.auth__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 40px;
    padding: 8px 12px;
    background-color: var(--color-primary);
    border: 0;
    border-radius: 6px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.auth__submit:hover {
    background-color: var(--color-primary-hover, var(--color-primary));
}

.auth__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth__alt {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: var(--color-paragraph, var(--text-color));
    text-align: center;
    margin: 0;
}

.auth__alt a {
    color: var(--color-black);
    font-weight: 600;
    text-decoration: none;
}

.auth__alt a:hover {
    text-decoration: underline;
}

.auth__legal {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    width: 100%;
}

.auth__legal p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 12px;
    line-height: 22px;
    color: var(--placeholder-text, #a6abb3);
    text-align: center;
    margin: 0;
}

.auth__legal a {
    color: inherit;
    text-decoration: none;
}

.auth__legal a:hover {
    text-decoration: underline;
}

.auth__flash {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    font-family: var(--font-family);
    font-size: 13px;
    line-height: 18px;
    margin: 0;
}

.auth__flash--error {
    background-color: rgba(255, 89, 99, 0.08);
    color: var(--color-red, #ff5963);
    border: 1px solid rgba(255, 89, 99, 0.25);
}

.auth__flash--success {
    background-color: rgba(2, 218, 197, 0.08);
    color: var(--color-secondary);
    border: 1px solid rgba(2, 218, 197, 0.25);
}

.verify_email_popup__status {
    margin: 0;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: var(--text-light, #5e5d5d);
    width: 100%;
}

.verify_email_popup__status--success {
    color: #16a34a;
    text-transform: capitalize;
}

.verify_email_popup__status--error {
    color: var(--color-red, #ff5963);
}

@media (max-width: 360px) {
    .auth__card {
        max-width: 100%;
    }
}