.auth-page {
    background: #efe7de;
}

.auth-main {
    min-height: 100vh;
    padding-top: 76px;
}

.auth-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.8fr);

    min-height: calc(100vh - 76px);
}

/* Visual section */

.auth-visual {
    position: relative;

    display: flex;
    align-items: flex-end;

    min-height: 760px;
    padding: 70px;

    overflow: hidden;

    color: #ffffff;

    background:
        url("../images/auth-background.jpg")
        center / cover no-repeat;
}

.auth-visual-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(20, 13, 10, 0.15),
            rgba(20, 13, 10, 0.9)
        );
}

.auth-visual-content {
    position: relative;
    z-index: 2;

    max-width: 600px;
}

.auth-visual-label {
    display: inline-flex;

    padding: 7px 17px;

    color: #f1cea2;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px;

    font-size: 12px;
}

.auth-visual-content h1 {
    margin-top: 20px;

    font-size: clamp(38px, 5vw, 65px);
    font-weight: 300;
    line-height: 1.45;
}

.auth-visual-content h1 strong {
    display: block;

    color: var(--secondary);
    font-weight: 800;
}

.auth-visual-content > p {
    max-width: 530px;
    margin-top: 18px;

    color: #ddd2cc;
    font-size: 14px;
    line-height: 2;
}

.auth-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 25px;

    margin-top: 30px;
}

.auth-benefit-item {
    display: flex;
    align-items: center;
    gap: 8px;

    color: #e3d9d3;
    font-size: 12px;
}

.auth-benefit-item span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 23px;
    height: 23px;

    color: #ffffff;
    background: var(--primary);
    border-radius: 50%;

    font-size: 11px;
}

/* Form panel */

.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 55px 45px;

    background: #f7f2ec;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 470px;
}

.auth-mobile-brand {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin-bottom: 25px;
}

.auth-mobile-logo {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 45px;
    height: 45px;

    color: #ffffff;
    background: var(--primary);
    border-radius: 50%;

    font-family: Georgia, serif;
    font-size: 25px;
    font-weight: 700;
}

.auth-mobile-brand div {
    display: flex;
    flex-direction: column;
}

.auth-mobile-brand strong {
    font-size: 15px;
}

.auth-mobile-brand small {
    margin-top: 2px;

    color: var(--text-light);
    font-size: 8px;
    letter-spacing: 1.5px;
}

/* Tabs */

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;

    margin-bottom: 32px;
    padding: 6px;

    background: #e9dfd5;
    border-radius: 16px;
}

.auth-tab {
    min-height: 46px;
    padding: 8px 15px;

    color: var(--text-light);
    background: transparent;
    border-radius: 11px;

    font-size: 13px;
    font-weight: 700;

    transition: 0.25s;
}

.auth-tab.active {
    color: #ffffff;
    background: var(--primary);
    box-shadow: 0 8px 20px rgba(140, 90, 56, 0.2);
}

/* Forms */

.auth-form-content {
    display: none;
}

.auth-form-content.active {
    display: block;
    animation: showAuthForm 0.3s ease;
}

@keyframes showAuthForm {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-heading > span {
    color: var(--primary);

    font-size: 12px;
    font-weight: 800;
}

.auth-heading h2 {
    margin-top: 7px;

    font-size: clamp(26px, 4vw, 38px);
}

.auth-heading p {
    margin-top: 8px;

    color: var(--text-light);
    font-size: 12px;
    line-height: 1.8;
}

.auth-form {
    margin-top: 28px;
}

.auth-form-group {
    margin-bottom: 18px;
}

.auth-form-group label {
    display: block;

    margin-bottom: 8px;

    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.auth-input-wrapper {
    position: relative;
}

.auth-input-wrapper input {
    width: 100%;
    height: 54px;

    padding: 0 48px;

    color: var(--text);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    outline: none;

    font-family: inherit;
    font-size: 13px;

    transition: 0.25s;
}

.auth-input-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(140, 90, 56, 0.09);
}

.auth-form-group.has-error input {
    border-color: var(--danger);
}

.auth-input-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 16px;

    color: var(--primary);
    font-size: 16px;

    transform: translateY(-50%);
}

.password-toggle {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    color: var(--text-light);
    background: transparent;
    border-radius: 50%;

    transform: translateY(-50%);
}

.password-toggle:hover {
    background: #f1e8df;
}

.auth-error,
.terms-error {
    display: block;

    min-height: 18px;
    margin-top: 6px;

    color: var(--danger);
    font-size: 10px;
}

.auth-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    margin-top: -2px;
    margin-bottom: 22px;
}

.remember-me,
.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;

    color: var(--text-light);
    cursor: pointer;

    font-size: 11px;
    line-height: 1.8;
}

.remember-me input,
.terms-checkbox input {
    flex: 0 0 auto;

    width: 15px;
    height: 15px;
    margin-top: 2px;

    accent-color: var(--primary);
}

.forgot-password-button {
    color: var(--primary);
    background: transparent;

    font-size: 11px;
    font-weight: 700;
}

.forgot-password-button:hover {
    text-decoration: underline;
}

.auth-submit-button {
    width: 100%;
    min-height: 52px;
    padding: 10px 24px;

    color: #ffffff;
    background: var(--primary);
    border-radius: 50px;

    font-size: 13px;
    font-weight: 800;

    transition: 0.25s;
}

.auth-submit-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.auth-submit-button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
}

.auth-form-message {
    display: none;

    margin-top: 16px;
    padding: 12px 14px;

    border-radius: 11px;

    font-size: 11px;
    line-height: 1.8;
}

.auth-form-message.success {
    display: block;

    color: #466e3b;
    background: #edf6e9;
    border: 1px solid #cce3c4;
}

.auth-form-message.error {
    display: block;

    color: #8a3830;
    background: #fbefed;
    border: 1px solid #efd0cc;
}

/* Forgot password modal */

.forgot-password-modal {
    position: fixed;
    z-index: 2500;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    visibility: hidden;
    opacity: 0;

    transition: 0.3s;
}

.forgot-password-modal.active {
    visibility: visible;
    opacity: 1;
}

.forgot-password-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(12, 8, 7, 0.75);
    backdrop-filter: blur(8px);
}

.forgot-password-content {
    position: relative;
    z-index: 2;

    width: min(430px, calc(100% - 30px));
    padding: 36px 30px;

    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);

    text-align: center;

    transform: scale(0.94);
    transition: 0.3s;
}

.forgot-password-modal.active .forgot-password-content {
    transform: scale(1);
}

.forgot-password-close {
    position: absolute;
    top: 14px;
    left: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    color: var(--text);
    background: #f2ebe4;
    border-radius: 50%;

    font-size: 23px;
}

.forgot-password-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;
    margin: auto;

    background: #f2e6d9;
    border-radius: 50%;

    font-size: 28px;
}

.forgot-password-content h3 {
    margin-top: 16px;

    font-size: 22px;
}

.forgot-password-content > p {
    margin-top: 9px;

    color: var(--text-light);
    font-size: 12px;
    line-height: 1.9;
}

.forgot-password-content form {
    margin-top: 23px;

    text-align: right;
}

/* Responsive */

@media (max-width: 950px) {
    .auth-section {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        display: none;
    }

    .auth-form-panel {
        min-height: calc(100vh - 76px);
    }

    .auth-mobile-brand {
        display: flex;
    }
}

@media (max-width: 650px) {
    .auth-main {
        padding-top: 68px;
    }

    .auth-form-panel {
        min-height: calc(100vh - 68px);
        padding: 35px 17px;
    }

    .auth-tabs {
        margin-bottom: 27px;
    }

    .auth-form-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .forgot-password-content {
        padding: 32px 20px 25px;
    }
}