
/* ========================================
   COLORIMPULSE — SHARED LOGIN

   GEMENSAM DESIGN
   DESKTOP + MOBILE
======================================== */

/* AUTH OVERLAY */

.auth-overlay {
    position: fixed;
    inset: 0;

    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100dvh;

    padding: 24px;

    background: rgba(30, 27, 30, 0.45);

    overflow-y: auto;
}

.auth-overlay[hidden],
.auth-modal [hidden] {
    display: none !important;
}

/* AUTH MODAL */

.auth-modal {
    position: relative;

    width: 100%;
    max-width: 420px;
    max-height: calc(100dvh - 48px);

    margin: auto;
    padding: 44px 38px 38px;

    overflow-y: auto;

    background: #faf8f4;
    color: #737373;

    border: none;
    border-radius: 24px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15);

    font-family: "DM Sans", Arial, sans-serif;
    text-align: center;
}

/* CLOSE */

.auth-close {
    position: absolute;

    top: 18px;
    right: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    padding: 0;

    background: transparent;
    color: #737373;

    border: none;

    font-size: 28px;
    font-weight: 400;

    cursor: pointer;
}

.auth-close:hover {
    color: #333333;
}

/* TITLE */

.auth-title {
    margin: 0 0 10px;

    color: #333333;

    font-family: "DM Sans", Arial, sans-serif;
    font-size: 25px;
    font-weight: 800;

    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* DESCRIPTION */

.auth-description {
    margin: 0 0 25px;

    color: #77716e;

    font-family: "DM Sans", Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;

    line-height: 1.6;
}

/* FORM */

.auth-form {
    display: flex;
    flex-direction: column;

    gap: 14px;

    width: 100%;

    text-align: left;
}

/* INPUTS */

.auth-input {
    display: block;

    width: 100%;
    height: 52px;

    padding: 0 16px;

    background: #ffffff;
    color: #333333;

    border: 1px solid #e5e0df;
    border-radius: 12px;

    outline: none;

    font-family: "DM Sans", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;

    transition: border-color 0.2s ease;
}

.auth-input::placeholder {
    color: #aaa4a4;
}

.auth-input:focus {
    border-color: #c78cba;
}

/* PASSWORD */

.password-field {
    position: relative;

    width: 100%;
}

.password-field .auth-input {
    padding-right: 52px;
}

.password-toggle {
    position: absolute;

    top: 50%;
    right: 12px;

    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    padding: 0;

    background: transparent;
    color: #737373;

    border: none;

    cursor: pointer;
}

.password-toggle:hover {
    color: #333333;
}

.password-toggle:focus-visible {
    outline: 2px solid #a83bce;
    outline-offset: 2px;
    border-radius: 6px;
}

/* FORGOT PASSWORD */

.auth-forgot {
    display: block;
    align-self: flex-end;

    width: fit-content;

    margin: 0 0 4px auto;
    padding: 0;

    background: transparent;
    color: #737373;

    border: none;

    font-family: "DM Sans", Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
}

.auth-forgot:hover {
    color: #333333;
}

/* SUBMIT */

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 52px;

    padding: 14px 18px;

    background: linear-gradient(
        90deg,
        #ff9b25 0%,
        #ff7559 18%,
        #f43d9d 40%,
        #a83bce 61%,
        #347bf0 81%,
        #14cbd2 100%
    );

    color: #ffffff;

    border: none;
    border-radius: 14px;

    font-family: "DM Sans", Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1px;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.auth-submit:hover {
    transform: translateY(-2px);
}

.auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* MESSAGES */

.auth-message {
    margin: 0;

    color: #737373;

    font-family: "DM Sans", Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;

    line-height: 1.5;

    text-align: center;
}

.auth-message:empty {
    display: none;
}

/* VERIFICATION */

#authVerification {
    width: 100%;
}

#authVerification[hidden] {
    display: none !important;
}

#authVerification .auth-submit {
    margin-top: 18px;
}

#authVerification .auth-forgot {
    margin: 18px auto 0;
}

/* SPAM NOTE */

.auth-spam-note {
    margin: 12px 0;

    color: #77716e;

    font-size: 12px;
    font-weight: 500;

    line-height: 1.6;
}

/* FOOTER */

.auth-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 5px;

    margin-top: 25px;

    color: #737373;

    font-family: "DM Sans", Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;

    line-height: 1.6;
}

.auth-footer[hidden] {
    display: none !important;
}

.auth-footer button {
    padding: 0;

    background: transparent;
    color: #a83bce;

    border: none;

    font-family: inherit;
    font-size: inherit;
    font-weight: 700;

    cursor: pointer;
}

.auth-footer button:hover {
    color: #77319c;
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 767px) {

    .auth-overlay {
        padding: 20px;
    }

    .auth-modal {
        max-height: calc(100dvh - 40px);

        padding: 36px 26px 30px;

        border-radius: 20px;
    }

    .auth-close {
        top: 14px;
        right: 18px;
    }

    .auth-title {
        font-size: 24px;
    }

    /* PREVENT IPHONE INPUT ZOOM */

    .auth-input {
        font-size: 16px;
    }

}

/* ========================================
   DESKTOP
======================================== */

@media (min-width: 768px) {

    .auth-overlay {
        background: rgba(30, 25, 35, 0.28);

        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .auth-modal {
        background: #ffffff;

        box-shadow:
            0 24px 80px rgba(30, 20, 40, 0.16);
    }

    .auth-close {
        background: #f5f4f6;

        border-radius: 50%;

        font-size: 20px;
    }

    .auth-close:hover {
        background: #eceaf0;
    }

    .auth-title {
        color: #424042;

        letter-spacing: -0.8px;
    }

    .auth-description {
        margin-bottom: 30px;

        color: #888188;
    }

    .auth-input {
        background: #faf9fb;

        border-color: #e8e5e9;

        font-size: 13px;
    }

    .auth-input:focus {
        border-color: #a83bce;
    }

    .password-toggle {
        right: 16px;

        width: 30px;
        height: 30px;
    }

    .auth-forgot {
        color: #888188;

        font-weight: 400;
    }

    .auth-forgot:hover {
        color: #a83bce;
    }

    .auth-submit {
        height: 54px;

        margin-top: 8px;

        border-radius: 13px;
    }

    .auth-submit:hover {
        transform: none;

        opacity: 0.9;
    }

    .auth-message {
        margin-top: 8px;

        color: #d44565;
    }

    .auth-footer {
        margin-top: 24px;

        color: #888188;

        font-size: 15px;
        font-weight: 500;
    }

    .auth-spam-note {
        margin-top: 16px;

        color: #888188;
    }

}

/* ========================================
   COLORIMPULSE — BUTTON PRESS EFFECT
======================================== */

/* SMOOTH BUTTON MOVEMENT */

.auth-submit,
.auth-close,
.password-toggle,
.auth-forgot,
.auth-footer button {
    transition:
        transform 0.18s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

/* BUTTON PRESS */

.auth-submit:active:not(:disabled) {
    transform:
        translateY(2px)
        scale(0.96);

    box-shadow:
        inset 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* SMALL BUTTON PRESS */

.auth-close:active,
.auth-forgot:active,
.auth-footer button:active {
    transform: scale(0.94);
}

/* PASSWORD EYE PRESS */

.password-toggle:active {
    transform:
        translateY(-50%)
        scale(0.9);
}

/* KEEP PRESS EFFECT ON DESKTOP */

@media (min-width: 768px) {

    .auth-submit:active:not(:disabled) {
        transform:
            translateY(2px)
            scale(0.96);

        opacity: 1;
    }

}
