/* =========================================================
   EXACTSUB
   SIGN UP PAGE
========================================================= */


/* =========================================================
   PAGE
========================================================= */

.signup-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--gray-50);
}


/* =========================================================
   TOP BAR
========================================================= */

.auth-topbar {
    width: min(
        calc(100% - (var(--container-padding) * 2)),
        var(--container-width)
    );

    min-height: var(--nav-height);

    margin-inline: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =========================================================
   LOGO
========================================================= */

.auth-logo {
    display: inline-flex;
    align-items: center;
}

.auth-logo img {
    width: auto;
    height: 3.6rem;
    object-fit: contain;
}


/* =========================================================
   THEME BUTTON
========================================================= */

.auth-theme-toggle {
    width: 4.2rem;
    height: 4.2rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);

    background: var(--white);
    color: var(--gray-700);

    transition:
        background-color var(--transition),
        border-color var(--transition),
        color var(--transition),
        transform var(--transition);
}

.auth-theme-toggle:hover {
    transform: translateY(-2px);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.auth-theme-toggle svg {
    width: 1.9rem;
    height: 1.9rem;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-icon-sun {
    display: none;
}

.theme-icon-moon {
    display: block;
}

[data-theme="dark"] .theme-icon-sun {
    display: block;
}

[data-theme="dark"] .theme-icon-moon {
    display: none;
}


/* =========================================================
   MAIN SECTION
========================================================= */

.signup-section {
    flex: 1;

    display: flex;
    align-items: center;

    padding: 3rem 2.4rem 5rem;
}


/* =========================================================
   MAIN CONTAINER
========================================================= */

.signup-container {
    width: min(100%, 1080px);

    margin-inline: auto;

    display: grid;
    grid-template-columns: 0.92fr 1.08fr;

    min-height: 680px;

    background: var(--white);

    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);

    overflow: hidden;

    box-shadow: var(--shadow-lg);
}


/* =========================================================
   BRAND PANEL
========================================================= */

.signup-brand-panel {
    position: relative;

    display: flex;
    align-items: center;

    padding: 5.5rem 4.5rem;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(41, 186, 34, 0.2),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 85%,
            rgba(41, 186, 34, 0.12),
            transparent 35%
        ),
        var(--brand-primary);

    overflow: hidden;
}


/* Decorative circle */

.signup-brand-panel::before {
    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    right: -130px;
    top: -110px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.signup-brand-panel::after {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    left: -100px;
    bottom: -80px;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}


.brand-panel-content {
    position: relative;
    z-index: 2;

    width: 100%;
}


/* =========================================================
   BRAND BADGE
========================================================= */

.brand-badge {
    width: fit-content;

    display: inline-flex;
    align-items: center;
    gap: 0.8rem;

    margin-bottom: 2.8rem;

    padding: 0.7rem 1.2rem;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-full);

    background: rgba(255, 255, 255, 0.08);

    font-size: 1.25rem;
    font-weight: 600;

    color: rgba(255, 255, 255, 0.92);
}

.brand-badge-dot {
    width: 0.7rem;
    height: 0.7rem;

    border-radius: 50%;

    background: var(--brand-accent);

    box-shadow: 0 0 0 4px rgba(41, 186, 34, 0.12);
}


/* =========================================================
   BRAND HEADING
========================================================= */

.signup-brand-panel h1 {
    max-width: 450px;

    margin-bottom: 2rem;

    color: #ffffff;

    font-size: clamp(3.2rem, 4vw, 4.8rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.signup-brand-panel h1 span {
    display: block;
    color: #66d760;
}


/* =========================================================
   BRAND DESCRIPTION
========================================================= */

.brand-description {
    max-width: 430px;

    margin-bottom: 3.8rem;

    color: rgba(255, 255, 255, 0.76);

    font-size: 1.55rem;
    line-height: 1.7;
}


/* =========================================================
   SERVICES
========================================================= */

.service-list {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}


.service-item {
    display: flex;
    align-items: flex-start;
    gap: 1.4rem;
}


.service-icon {
    flex: 0 0 4rem;

    width: 4rem;
    height: 4rem;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;

    background: rgba(255, 255, 255, 0.08);
}


.service-icon svg {
    width: 2rem;
    height: 2rem;

    fill: none;
    stroke: #ffffff;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.service-item strong {
    display: block;

    margin-bottom: 0.25rem;

    color: #ffffff;

    font-size: 1.4rem;
    font-weight: 600;
}


.service-item span {
    display: block;

    color: rgba(255, 255, 255, 0.6);

    font-size: 1.25rem;
    line-height: 1.5;
}


/* =========================================================
   SECURITY
========================================================= */

.brand-security {
    display: flex;
    align-items: center;
    gap: 0.8rem;

    margin-top: 4rem;
    padding-top: 2rem;

    border-top: 1px solid rgba(255, 255, 255, 0.1);

    color: rgba(255, 255, 255, 0.58);

    font-size: 1.2rem;
}


.brand-security svg {
    width: 1.8rem;
    height: 1.8rem;

    flex: 0 0 auto;

    fill: none;
    stroke: #66d760;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   FORM PANEL
========================================================= */

.signup-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 5rem 5.5rem;

    background: var(--white);
}


/* =========================================================
   SIGNUP CARD
========================================================= */

.signup-card {
    width: min(100%, 470px);
}


/* =========================================================
   HEADER
========================================================= */

.signup-header {
    margin-bottom: 3rem;
}

.signup-header h2 {
    margin-bottom: 0.8rem;

    color: var(--gray-800);

    font-size: 3rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.signup-header p {
    color: var(--gray-600);

    font-size: 1.45rem;
}


/* =========================================================
   MOBILE BRAND MARK
========================================================= */



/* =========================================================
   FORM
========================================================= */

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 1.7rem;
}


/* =========================================================
   TWO COLUMN GRID
========================================================= */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 1.4rem;
}


/* =========================================================
   FIELD
========================================================= */

.auth-field {
    position: relative;
}

.auth-field label {
    display: block;

    margin-bottom: 0.7rem;

    color: var(--gray-800);

    font-size: 1.3rem;
    font-weight: 600;
}


/* =========================================================
   INPUT WRAPPER
========================================================= */

.auth-input-wrapper {
    position: relative;

    display: flex;
    align-items: center;
}


/* =========================================================
   INPUT ICON
========================================================= */

.auth-input-icon {
    position: absolute;
    left: 1.4rem;

    width: 1.8rem;
    height: 1.8rem;

    pointer-events: none;

    fill: none;
    stroke: var(--gray-400);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition: stroke var(--transition);
}


/* =========================================================
   INPUT
========================================================= */

.auth-input-wrapper input {
    width: 100%;
    height: 4.8rem;

    padding: 0 4.3rem;

    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);

    outline: none;

    background: var(--white);
    color: var(--gray-800);

    font-size: 1.4rem;

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background-color var(--transition);
}


.auth-input-wrapper input::placeholder {
    color: var(--gray-400);
}


.auth-input-wrapper input:hover {
    border-color: var(--gray-300);
}


.auth-input-wrapper:focus-within .auth-input-icon {
    stroke: var(--brand-primary);
}


.auth-input-wrapper input:focus {
    border-color: var(--brand-primary);

    box-shadow:
        0 0 0 3px rgba(2, 42, 123, 0.08);
}


/* =========================================================
   PASSWORD TOGGLE
========================================================= */

.password-toggle {
    position: absolute;
    right: 0.9rem;

    width: 3.4rem;
    height: 3.4rem;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 0.7rem;

    background: transparent;
    color: var(--gray-400);

    transition:
        background-color var(--transition),
        color var(--transition);
}


.password-toggle:hover {
    background: var(--gray-100);
    color: var(--brand-primary);
}


.password-toggle svg {
    width: 1.8rem;
    height: 1.8rem;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.password-toggle .eye-closed {
    display: none;
}


.password-toggle.is-visible .eye-open {
    display: none;
}


.password-toggle.is-visible .eye-closed {
    display: block;
}


/* =========================================================
   FIELD HINT
========================================================= */

.field-hint {
    display: block;

    margin-top: 0.5rem;

    color: var(--gray-500);

    font-size: 1.15rem;
}


/* =========================================================
   FIELD ERROR
========================================================= */

.field-error,
.terms-error {
    display: block;

    min-height: 0;

    margin-top: 0;

    color: var(--error);

    font-size: 1.15rem;
}


.auth-field.has-error .auth-input-wrapper input {
    border-color: var(--error);

    box-shadow:
        0 0 0 3px rgba(224, 49, 49, 0.07);
}


.auth-field.has-error .auth-input-icon {
    stroke: var(--error);
}


.auth-field.has-error .field-error {
    margin-top: 0.45rem;
}


/* =========================================================
   PASSWORD STRENGTH
========================================================= */

.password-strength {
    display: flex;
    align-items: center;
    gap: 0.9rem;

    margin-top: 0.8rem;
}


.strength-bars {
    flex: 1;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 0.4rem;
}


.strength-bars span {
    height: 0.35rem;

    border-radius: var(--radius-full);

    background: var(--gray-200);

    transition: background-color 0.2s ease;
}


.password-strength[data-strength="1"]
.strength-bars span:nth-child(1),

.password-strength[data-strength="2"]
.strength-bars span:nth-child(-n+2),

.password-strength[data-strength="3"]
.strength-bars span:nth-child(-n+3),

.password-strength[data-strength="4"]
.strength-bars span:nth-child(-n+4) {
    background: var(--brand-accent);
}


.strength-text {
    min-width: 9rem;

    color: var(--gray-500);

    font-size: 1.1rem;
    text-align: right;
}


/* =========================================================
   PASSWORD REQUIREMENTS
========================================================= */

.password-requirements {
    display: flex;
    flex-wrap: wrap;

    gap: 0.8rem 1.2rem;

    margin-top: 0.8rem;
}


.password-requirements span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;

    color: var(--gray-500);

    font-size: 1.1rem;

    transition: color var(--transition);
}


.password-requirements svg {
    width: 1.35rem;
    height: 1.35rem;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.password-requirements span.valid {
    color: var(--brand-accent-dark);
}


/* =========================================================
   TERMS
========================================================= */

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;

    cursor: pointer;

    margin-top: 0.3rem;
}


.terms-checkbox input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
}


.custom-checkbox {
    flex: 0 0 1.9rem;

    width: 1.9rem;
    height: 1.9rem;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 0.1rem;

    border: 1.5px solid var(--gray-300);
    border-radius: 0.5rem;

    background: var(--white);

    transition:
        background-color var(--transition),
        border-color var(--transition);
}


.custom-checkbox svg {
    width: 1.3rem;
    height: 1.3rem;

    fill: none;
    stroke: #ffffff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;

    opacity: 0;
}


.terms-checkbox input:checked + .custom-checkbox {
    border-color: var(--brand-primary);
    background: var(--brand-primary);
}


.terms-checkbox input:checked + .custom-checkbox svg {
    opacity: 1;
}


.terms-checkbox input:focus-visible + .custom-checkbox {
    outline: 3px solid rgba(41, 186, 34, 0.25);
    outline-offset: 2px;
}


.terms-text {
    color: var(--gray-600);

    font-size: 1.15rem;
    line-height: 1.55;
}


.terms-text a {
    color: var(--brand-primary);
    font-weight: 600;
}


.terms-text a:hover {
    text-decoration: underline;
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.signup-submit {
    position: relative;

    width: 100%;
    height: 5rem;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;

    margin-top: 0.6rem;

    border: 0;
    border-radius: var(--radius-md);

    background: var(--brand-primary);
    color: #ffffff;

    font-size: 1.4rem;
    font-weight: 600;

    box-shadow:
        0 7px 18px rgba(2, 42, 123, 0.18);

    transition:
        transform var(--transition),
        background-color var(--transition),
        box-shadow var(--transition);
}


.signup-submit:hover {
    transform: translateY(-2px);

    background: var(--brand-primary-dark);

    box-shadow:
        0 10px 24px rgba(2, 42, 123, 0.24);
}


.signup-submit:active {
    transform: translateY(0);
}


.signup-submit:disabled {
    cursor: not-allowed;

    opacity: 0.7;

    transform: none;
}


.submit-arrow {
    width: 1.8rem;
    height: 1.8rem;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.submit-loader {
    display: none;

    width: 1.8rem;
    height: 1.8rem;

    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;

    border-radius: 50%;

    animation: spin 0.7s linear infinite;
}


.signup-submit.loading .submit-text,
.signup-submit.loading .submit-arrow {
    display: none;
}


.signup-submit.loading .submit-loader {
    display: block;
}


@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   LOGIN SWITCH
========================================================= */

.auth-switch {
    margin-top: 2.4rem;

    color: var(--gray-600);

    font-size: 1.3rem;

    text-align: center;
}


.auth-switch a {
    margin-left: 0.3rem;

    color: var(--brand-primary);

    font-weight: 600;
}


.auth-switch a:hover {
    text-decoration: underline;
}


/* =========================================================
   COPYRIGHT
========================================================= */

.auth-copyright {
    padding: 0 2.4rem 2.5rem;

    color: var(--gray-500);

    font-size: 1.15rem;

    text-align: center;
}


/* =========================================================
   DARK MODE
========================================================= */

[data-theme="dark"] .signup-page {
    background: var(--gray-50);
}


[data-theme="dark"] .signup-container {
    border-color: var(--gray-200);
}


[data-theme="dark"] .auth-input-wrapper input {
    border-color: var(--gray-200);
}


[data-theme="dark"] .auth-input-wrapper input:focus {
    box-shadow:
        0 0 0 3px rgba(41, 186, 34, 0.1);
}


[data-theme="dark"] .password-toggle:hover {
    background: var(--gray-100);
}


[data-theme="dark"] .custom-checkbox {
    border-color: var(--gray-300);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .signup-section {
        padding-inline: 1.8rem;
    }

    .signup-container {
        grid-template-columns: 1fr;
        max-width: 620px;
    }

    .signup-brand-panel {
        display: none;
    }

    .signup-form-panel {
        padding: 4.5rem 4rem;
    }

    

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .auth-topbar {
        min-height: 6.5rem;
    }

    .auth-logo img {
        height: 3.2rem;
    }

    .auth-theme-toggle {
        width: 4rem;
        height: 4rem;
    }

    .signup-section {
        padding: 1rem 1.4rem 3rem;
        align-items: flex-start;
    }

    .signup-container {
        border-radius: 1.6rem;

        box-shadow:
            0 8px 28px rgba(0, 0, 0, 0.06);
    }

    .signup-form-panel {
        padding: 3.2rem 1.8rem;
    }

    .signup-header {
        margin-bottom: 2.5rem;
    }

    .signup-header h2 {
        font-size: 2.6rem;
    }

    .signup-header p {
        font-size: 1.35rem;
    }

    .signup-form {
        gap: 1.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .auth-input-wrapper input {
        height: 4.8rem;
    }

    .terms-text {
        font-size: 1.1rem;
    }

    .auth-copyright {
        padding-bottom: 2rem;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .signup-form-panel {
        padding-inline: 1.5rem;
    }

    .signup-header h2 {
        font-size: 2.4rem;
    }

    .password-requirements {
        flex-direction: column;
        gap: 0.5rem;
    }
}