/* =========================================
   PAGE
========================================= */

.auth-page {
    min-height: 100vh;

    padding: 24px;

    display: flex;
    align-items: center;
    justify-content: center;
}


.auth-wrapper {
    width: min(1200px, 100%);

    min-height: calc(100vh - 48px);

    display: grid;
    grid-template-columns: 1fr 1fr;

    overflow: hidden;

    background: var(--color-white);

    border-radius: var(--radius-xl);

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.08);
}


/* =========================================
   LEFT
========================================= */

.login-section {
    display: flex;
    justify-content: center;

    background: var(--color-white);

    overflow-y: auto;
}


.login-content {
    width: min(100%, 470px);

    padding: 58px 42px 40px;
}


/* =========================================
   LOGO
========================================= */

.auth-logo {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    margin-bottom: 58px;

    text-decoration: none;

    color: var(--color-black);

    font-size: var(--text-lg);

    font-weight: var(--font-bold);
}


.auth-logo>span:last-child span {
    color: var(--color-primary);
}


.logo-mark {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: var(--color-primary);

    color: var(--color-white);

    font-size: 14px;

    font-weight: var(--font-bold);
}


/* =========================================
   HEADING
========================================= */

.login-heading {
    margin-bottom: 32px;
}


.eyebrow {
    display: inline-block;

    margin-bottom: 10px;

    color: var(--color-primary);

    font-size: var(--text-xs);

    font-weight: var(--font-bold);

    letter-spacing: 0.12em;
}


.login-heading h1 {
    margin-bottom: 11px;

    font-size: 34px;

    line-height: 1.15;

    letter-spacing: -0.035em;

    font-weight: var(--font-bold);
}


.login-heading h1 span {
    color: var(--color-primary);
}


.login-heading p {
    max-width: 400px;

    color: var(--color-text-muted);

    font-size: var(--text-sm);

    line-height: 1.6;
}


/* =========================================
   ALERTS
========================================= */

.form-alert,
.form-success {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 11px 13px;

    margin-bottom: 20px;

    border-radius: var(--radius-md);

    font-size: var(--text-sm);
}


.form-alert {
    background: var(--color-primary-light);

    color: var(--color-primary);
}


.form-success {
    background: #e9f8ef;

    color: #198754;
}


.alert-icon,
.success-icon {
    width: 20px;
    height: 20px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: white;

    font-size: 12px;

    font-weight: var(--font-bold);
}


.alert-icon {
    background: var(--color-primary);
}


.success-icon {
    background: #198754;
}


/* =========================================
   FORM
========================================= */

.login-form {
    display: flex;
    flex-direction: column;

    gap: 21px;
}


.input-group {
    display: flex;
    flex-direction: column;

    gap: 7px;
}


.input-group label {
    font-size: var(--text-sm);

    font-weight: var(--font-semibold);
}


.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.label-row a {
    color: var(--color-primary);

    text-decoration: none;

    font-size: var(--text-xs);

    font-weight: var(--font-semibold);
}


.label-row a:hover {
    text-decoration: underline;
}


/* =========================================
   INPUT
========================================= */

.input-wrapper {
    height: var(--input-height);

    position: relative;

    display: flex;
    align-items: center;
}


.input-wrapper input {
    width: 100%;
    height: 100%;

    padding: 0 44px;

    outline: none;

    border: 1px solid var(--color-border);

    border-radius: var(--radius-md);

    background: var(--color-white);

    color: var(--color-black);

    font-family: inherit;

    font-size: var(--text-sm);

    transition: var(--transition);
}


.input-wrapper input::placeholder {
    color: #a0a0a0;
}


.input-wrapper input:focus {
    border-color: var(--color-primary);

    box-shadow:
        0 0 0 3px var(--color-primary-light);
}


.input-icon {
    position: absolute;

    left: 14px;

    width: var(--icon-sm);
    height: var(--icon-sm);

    z-index: 2;

    color: #929292;
}


.input-icon svg {
    width: 100%;
    height: 100%;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================
   PASSWORD
========================================= */

.password-toggle {
    position: absolute;

    right: 12px;

    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;

    background: transparent;

    color: #888;

    cursor: pointer;
}


.password-toggle:hover {
    color: var(--color-primary);
}


.password-toggle svg {
    width: 18px;
    height: 18px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================
   REMEMBER ME
========================================= */

.login-options {
    margin-top: -7px;
}


.remember-me {
    display: flex;
    align-items: center;

    gap: 9px;

    color: var(--color-text-muted);

    font-size: var(--text-xs);

    cursor: pointer;
}


.remember-me input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}


.custom-checkbox {
    width: 18px;
    height: 18px;

    position: relative;

    flex-shrink: 0;

    border: 1px solid #cfcfcf;

    border-radius: 4px;

    transition: var(--transition);
}


.remember-me input:checked+.custom-checkbox {
    background: var(--color-primary);

    border-color: var(--color-primary);
}


.remember-me input:checked+.custom-checkbox::after {
    content: "";

    position: absolute;

    left: 5px;
    top: 2px;

    width: 5px;
    height: 9px;

    border-right: 2px solid white;
    border-bottom: 2px solid white;

    transform: rotate(45deg);
}


/* =========================================
   BUTTON
========================================= */

.btn {
    min-height: var(--button-height);

    border: none;

    border-radius: var(--radius-md);

    font-family: inherit;

    font-size: var(--text-sm);

    font-weight: var(--font-semibold);

    cursor: pointer;

    transition: var(--transition);
}


.btn-primary {
    background: var(--color-primary);

    color: var(--color-white);
}


.btn-primary:hover {
    background: var(--color-primary-dark);
}


.login-button {
    width: 100%;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    margin-top: 2px;

    box-shadow:
        0 8px 20px rgba(200, 33, 40, 0.18);
}


.login-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 10px 24px rgba(200, 33, 40, 0.23);
}


.button-arrow {
    font-size: 20px;

    transition: var(--transition);
}


.login-button:hover .button-arrow {
    transform: translateX(4px);
}


/* =========================================
   DIVIDER
========================================= */

.divider {
    display: flex;
    align-items: center;

    gap: 12px;
}


.divider span {
    height: 1px;

    flex: 1;

    background: var(--color-border);
}


.divider small {
    color: #999;

    font-size: 10px;

    font-weight: var(--font-semibold);

    letter-spacing: 0.08em;

    white-space: nowrap;
}


/* =========================================
   GOOGLE
========================================= */

.google-button {
    width: 100%;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    border: 1px solid var(--color-border);

    border-radius: var(--radius-md);

    background: var(--color-white);

    color: var(--color-black);

    font-family: inherit;

    font-size: var(--text-sm);

    font-weight: var(--font-medium);

    cursor: pointer;

    transition: var(--transition);
}


.google-button:hover {
    background: #fafafa;

    border-color: #c9c9c9;

    box-shadow: var(--shadow-sm);
}


.google-icon {
    font-size: 18px;

    font-weight: var(--font-bold);

    color: #4285f4;
}


/* =========================================
   SIGNUP
========================================= */

.signup-text {
    margin-top: 24px;

    text-align: center;

    color: var(--color-text-muted);

    font-size: var(--text-xs);
}


.signup-text a {
    color: var(--color-primary);

    text-decoration: none;

    font-weight: var(--font-semibold);
}


.signup-text a:hover {
    text-decoration: underline;
}


/* =========================================
   RIGHT VISUAL
========================================= */

.visual-section {
    position: relative;

    min-height: 700px;

    overflow: hidden;

    background:
        linear-gradient(145deg,
            #fff8f8 0%,
            #fbe8e9 60%,
            #f8d8da 100%);
}


.visual-content {
    height: 100%;

    position: relative;

    z-index: 3;

    padding: 58px 54px;
}


.visual-badge {
    width: fit-content;

    display: flex;
    align-items: center;

    gap: 8px;

    padding: 7px 12px;

    border-radius: var(--radius-full);

    background: rgba(200, 33, 40, 0.08);

    color: var(--color-primary);

    font-size: 10px;

    font-weight: var(--font-bold);

    letter-spacing: 0.1em;
}


.badge-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--color-primary);

    box-shadow:
        0 0 0 4px rgba(200, 33, 40, 0.1);
}


.visual-content h2 {
    max-width: 440px;

    margin-top: 24px;

    font-size: 38px;

    line-height: 1.12;

    letter-spacing: -0.04em;

    font-weight: var(--font-bold);
}


.visual-content h2 span {
    color: var(--color-primary);
}


.visual-description {
    max-width: 430px;

    margin-top: 16px;

    color: #5e5e5e;

    font-size: var(--text-sm);

    line-height: 1.7;
}


/* =========================================
   BENEFITS
========================================= */

.benefits {
    display: flex;
    flex-direction: column;

    gap: 19px;

    margin-top: 32px;
}


.benefit {
    display: flex;

    align-items: center;

    gap: 15px;
}


.benefit-icon {
    width: 44px;
    height: 44px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: var(--radius-md);

    background: var(--color-white);

    color: var(--color-primary);

    box-shadow:
        0 5px 15px rgba(200, 33, 40, 0.08);
}


.benefit-icon svg {
    width: 21px;
    height: 21px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.benefit h3 {
    margin-bottom: 3px;

    font-size: var(--text-sm);

    font-weight: var(--font-semibold);
}


.benefit p {
    color: var(--color-text-muted);

    font-size: var(--text-xs);

    line-height: 1.5;
}


/* =========================================
   IMAGE
========================================= */

.vendor-image-wrapper {
    position: absolute;

    right: -10px;
    bottom: -15px;

    width: 52%;

    z-index: 2;
}


.image-glow {
    position: absolute;

    width: 300px;
    height: 300px;

    right: 20px;
    bottom: 30px;

    border-radius: 50%;

    background: rgba(200, 33, 40, 0.12);

    filter: blur(20px);
}


.vendor-image {
    position: relative;

    display: block;

    width: 100%;

    max-height: 410px;

    object-fit: cover;

    border-radius: 120px 0 0 0;

    mix-blend-mode: multiply;
}


/* =========================================
   FLOATING CARD
========================================= */

.vendor-stat {
    position: absolute;

    z-index: 5;

    right: 38px;
    bottom: 32px;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 13px 17px;

    border-radius: var(--radius-lg);

    background: rgba(255, 255, 255, 0.94);

    backdrop-filter: blur(10px);

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.1);
}


.stat-icon {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--color-primary-light);

    color: var(--color-primary);
}


.stat-icon svg {
    width: 16px;
    height: 16px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;
}


.vendor-stat strong,
.vendor-stat small {
    display: block;
}


.vendor-stat strong {
    font-size: 11px;

    font-weight: var(--font-semibold);
}


.vendor-stat small {
    margin-top: 2px;

    color: var(--color-text-muted);

    font-size: 9px;
}


/* =========================================
   DECORATION
========================================= */

.visual-circle {
    position: absolute;

    z-index: 1;

    border-radius: 50%;
}


.circle-one {
    width: 270px;
    height: 270px;

    top: -120px;
    right: -90px;

    background: rgba(200, 33, 40, 0.08);
}


.circle-two {
    width: 180px;
    height: 180px;

    top: 160px;
    right: 180px;

    border: 1px solid rgba(200, 33, 40, 0.1);
}


.dot-pattern {
    position: absolute;

    top: 38px;
    right: 40px;

    width: 100px;
    height: 100px;

    opacity: 0.35;

    background-image:
        radial-gradient(var(--color-primary) 1px,
            transparent 1px);

    background-size: 12px 12px;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1050px) {

    .auth-wrapper {
        grid-template-columns: 0.95fr 1.05fr;
    }


    .login-content {
        padding: 42px 32px;
    }


    .visual-content {
        padding: 48px 38px;
    }


    .visual-content h2 {
        font-size: 32px;
    }


    .vendor-image-wrapper {
        width: 55%;
    }

}


@media (max-width: 850px) {

    .auth-page {
        padding: 0;
    }


    .auth-wrapper {
        min-height: 100vh;

        border-radius: 0;

        grid-template-columns: 1fr;
    }


    .visual-section {
        display: none;
    }


    .login-section {
        min-height: 100vh;

        align-items: center;
    }


    .login-content {
        width: min(500px, 100%);

        padding: 40px 28px;
    }

}


@media (max-width: 480px) {

    .login-content {
        padding: 28px 20px;
    }


    .auth-logo {
        margin-bottom: 35px;
    }


    .login-heading h1 {
        font-size: 29px;
    }


    .login-form {
        gap: 17px;
    }

}