/* =========================================================
   MEelo — Professional Login / Account Page
   ========================================================= */


/* =========================================================
   PAGE FOUNDATION
   ========================================================= */

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    background: #f7f8fb;
    color: #171717;
    font-family: Arial, Helvetica, sans-serif;
}


/* =========================================================
   SIMPLE LOGIN HEADER
   ========================================================= */

.login-header-bar {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e9e9ee;
}

.login-header-inner {
    width: min(1120px, calc(100% - 40px));
    min-height: 76px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}


/* MEelo Logo */

.login-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: #111111;
    text-decoration: none;
}

.login-brand-mark {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #111111;
    color: #ffffff;

    font-size: 22px;
    font-weight: 800;
}

.login-brand-text {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.7px;
}

.login-brand-text span {
    color: #777777;
}


/* Back Home */

.back-home {
    display: inline-flex;
    align-items: center;

    min-height: 40px;
    padding: 0 15px;

    border: 1px solid #e1e3e8;
    border-radius: 9px;

    background: #ffffff;
    color: #333333;

    text-decoration: none;
    font-size: 14px;
    font-weight: 600;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.back-home:hover {
    background: #f5f5f7;
    border-color: #cfd2d8;
    transform: translateY(-1px);
}


/* =========================================================
   MAIN LOGIN AREA
   ========================================================= */

.login-page {
    width: 100%;
    min-height: calc(100vh - 150px);

    box-sizing: border-box;

    padding: 55px 20px 70px;

    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.login-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}


/* =========================================================
   LOGIN CARD
   ========================================================= */

.login-card {
    width: 100%;
    box-sizing: border-box;

    padding: 38px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 20px;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.06);
}


/* =========================================================
   LOGIN INTRO
   ========================================================= */

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-icon {
    width: 62px;
    height: 62px;

    margin: 0 auto 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #111111;
    color: #ffffff;

    font-size: 29px;
}

.login-header h1 {
    margin: 0 0 9px;

    color: #111111;

    font-size: 28px;
    line-height: 1.25;
    font-weight: 800;

    letter-spacing: -0.5px;
}

.login-header p {
    margin: 0;

    color: #70757d;

    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   AUTH FORM
   ========================================================= */

.auth-form {
    margin: 0;
}

.auth-form h2 {
    margin: 0 0 20px;

    color: #171717;

    font-size: 20px;
    line-height: 1.3;
    font-weight: 750;
}


/* =========================================================
   FORM GROUP
   ========================================================= */

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    color: #30343b;

    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
}


/* Password label row */

.password-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 7px;
}

.password-label-row label {
    margin-bottom: 0;
}


/* =========================================================
   INPUTS
   ========================================================= */

.form-group input {
    width: 100%;
    height: 48px;

    box-sizing: border-box;

    padding: 0 14px;

    border: 1px solid #d9dce2;
    border-radius: 10px;

    outline: none;

    background: #ffffff;
    color: #171717;

    font-family: inherit;
    font-size: 15px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.form-group input:hover {
    border-color: #bfc3ca;
}

.form-group input:focus {
    border-color: #111111;

    box-shadow:
        0 0 0 3px rgba(17, 17, 17, 0.08);
}

.form-group input::placeholder {
    color: #a0a4aa;
}

.form-group input:disabled {
    background: #f3f4f6;
    cursor: not-allowed;
}


/* Browser autofill */

.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus {
    -webkit-text-fill-color: #171717;
    transition: background-color 9999s ease-in-out 0s;
}


/* Small hint */

.input-hint {
    display: block;

    margin-top: 7px;

    color: #858a92;

    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   AUTH BUTTONS
   ========================================================= */

.auth-button {
    width: 100%;
    min-height: 48px;

    padding: 0 18px;

    border: 0;
    border-radius: 10px;

    background: #111111;
    color: #ffffff;

    font-family: inherit;
    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition:
        opacity 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

.auth-button:hover {
    opacity: 0.92;

    box-shadow:
        0 5px 16px rgba(0, 0, 0, 0.12);
}

.auth-button:active {
    transform: scale(0.985);
}

.auth-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.signup-button {
    background: #111111;
}


/* =========================================================
   FORM MESSAGES
   ========================================================= */

.auth-message {
    min-height: 20px;

    margin: 10px 0 0;

    text-align: center;

    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   OR DIVIDER
   ========================================================= */

.auth-divider {
    display: flex;
    align-items: center;

    gap: 14px;

    margin: 30px 0;

    color: #969aa1;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";

    flex: 1;

    height: 1px;

    background: #e5e7eb;
}

.auth-divider span {
    flex-shrink: 0;
}


/* =========================================================
   LOGGED-IN STATE
   ========================================================= */

.logged-in-box {
    text-align: center;

    padding: 8px 0 0;
}

.logged-in-box[hidden] {
    display: none !important;
}

.success-icon {
    width: 64px;
    height: 64px;

    margin: 0 auto 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ecfdf3;
    color: #15803d;

    font-size: 30px;
    font-weight: 800;
}

.logged-in-box h2 {
    margin: 0 0 8px;

    color: #171717;

    font-size: 22px;
    font-weight: 800;
}

.logged-in-box p {
    margin: 0 0 24px;

    color: #6b7280;

    font-size: 14px;
    line-height: 1.5;

    word-break: break-word;
}


/* =========================================================
   ACCOUNT / LOGOUT BUTTONS
   ========================================================= */

.account-button,
.continue-shopping-button,
.logout-button {
    width: 100%;
    min-height: 46px;

    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    cursor: pointer;
}

.account-button {
    margin-bottom: 10px;

    background: #111111;
    color: #ffffff;
}

.account-button:hover {
    opacity: 0.92;
}

.continue-shopping-button {
    margin-bottom: 10px;

    border: 1px solid #dedfe4;

    background: #ffffff;
    color: #333333;
}

.continue-shopping-button:hover {
    background: #f6f6f7;
}

.logout-button {
    border: 1px solid #dedfe4;

    background: #ffffff;
    color: #555555;
}

.logout-button:hover {
    background: #f6f6f7;
}

.logout-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}


/* =========================================================
   SECURITY NOTE
   ========================================================= */

.login-security-note {
    margin-top: 28px;
    padding: 13px 14px;

    display: flex;
    align-items: flex-start;

    gap: 9px;

    border: 1px solid #e8e9ed;
    border-radius: 10px;

    background: #fafafa;

    color: #777b82;

    font-size: 11px;
    line-height: 1.5;
}

.security-icon {
    flex-shrink: 0;

    font-size: 13px;
}


/* =========================================================
   HELP
   ========================================================= */

.login-help {
    padding-top: 18px;

    text-align: center;
}

.login-help p {
    margin: 0;

    color: #7a7f87;

    font-size: 13px;
}

.login-help a {
    color: #222222;

    font-weight: 700;
    text-decoration: none;
}

.login-help a:hover {
    text-decoration: underline;
}


/* =========================================================
   LOGIN FOOTER
   ========================================================= */

.login-footer {
    width: 100%;

    border-top: 1px solid #e6e7eb;

    background: #ffffff;
}

.login-footer-inner {
    width: min(1120px, calc(100% - 40px));
    min-height: 68px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
}

.login-footer p {
    margin: 0;

    color: #858991;

    font-size: 12px;
}

.login-footer-links {
    display: flex;
    align-items: center;

    gap: 10px;
}

.login-footer-links a {
    color: #6b7078;

    font-size: 12px;
    text-decoration: none;
}

.login-footer-links a:hover {
    color: #111111;
    text-decoration: underline;
}

.login-footer-links span {
    color: #c2c4c8;
    font-size: 10px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 700px) {

    .login-header-inner {
        width: min(100% - 28px, 560px);
        min-height: 68px;
    }

    .login-brand-text {
        font-size: 23px;
    }

    .login-brand-mark {
        width: 39px;
        height: 39px;
        border-radius: 10px;
        font-size: 20px;
    }

    .login-page {
        padding: 38px 15px 55px;
    }

    .login-card {
        padding: 30px 24px;
    }

    .login-footer-inner {
        width: min(100% - 28px, 560px);

        padding: 14px 0;

        flex-direction: column;
        justify-content: center;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .login-header-inner {
        width: calc(100% - 24px);

        min-height: 64px;
    }

    .login-brand {
        gap: 8px;
    }

    .login-brand-mark {
        width: 36px;
        height: 36px;

        border-radius: 9px;

        font-size: 18px;
    }

    .login-brand-text {
        font-size: 21px;
    }

    .back-home {
        min-height: 36px;

        padding: 0 10px;

        border-radius: 8px;

        font-size: 12px;
    }

    .login-page {
        padding: 25px 12px 45px;
    }

    .login-card {
        padding: 26px 18px;

        border-radius: 16px;

        box-shadow:
            0 7px 25px rgba(0, 0, 0, 0.05);
    }

    .login-header {
        margin-bottom: 27px;
    }

    .login-icon {
        width: 56px;
        height: 56px;

        margin-bottom: 14px;

        font-size: 26px;
    }

    .login-header h1 {
        font-size: 23px;
    }

    .login-header p {
        font-size: 13px;
    }

    .auth-form h2 {
        font-size: 18px;
    }

    .form-group input {
        height: 46px;

        font-size: 14px;
    }

    .auth-button {
        min-height: 46px;
    }

    .login-security-note {
        font-size: 10.5px;
    }

    .login-footer-inner {
        width: calc(100% - 24px);
    }
}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 360px) {

    .back-home {
        padding: 0 8px;
        font-size: 11px;
    }

    .login-brand-text {
        font-size: 19px;
    }

    .login-brand-mark {
        width: 34px;
        height: 34px;
    }

    .login-card {
        padding: 23px 15px;
    }

    .login-header h1 {
        font-size: 21px;
    }
}