﻿/* =========================================
   LOGIN + REGISTRATION PAGE
========================================= */

.login-wrapper {
    width: 100%;
    min-height: calc(100vh - 220px);
    padding: 38px 20px 55px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: #f4f6f9;
    box-sizing: border-box;
}

.login-card {
    width: 100%;
    max-width: 960px;
    min-height: 500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(310px, 38%) minmax(0, 62%);
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.login-left {
    min-width: 0;
    padding: 58px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(145deg, #2d7bed, #1767d7);
    color: #ffffff;
    box-sizing: border-box;
}

    .login-left h1 {
        margin: 0 0 22px;
        color: #ffffff;
        font-size: 38px;
        line-height: 1.2;
        font-weight: 700;
        overflow-wrap: normal;
        word-break: normal;
    }

    .login-left p {
        max-width: 290px;
        margin: 0;
        color: rgba(255, 255, 255, 0.96);
        font-size: 18px;
        line-height: 1.55;
    }

.login-right {
    min-width: 0;
    padding: 58px 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    box-sizing: border-box;
}

    .login-right form {
        width: 100%;
        max-width: 430px;
        margin: 0;
    }

    .login-right label,
    .login-label,
    .form-label {
        display: block;
        margin: 0 0 8px;
        color: #252525;
        font-size: 15px;
        font-weight: 600;
    }

.select-wrap {
    position: relative;
    width: 100%;
    margin-bottom: 22px;
}

    .select-wrap::after {
        content: "⌄";
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-56%);
        color: #2874f0;
        font-size: 22px;
        pointer-events: none;
    }

.country-select,
.login-select {
    width: 100%;
    height: 52px;
    padding: 0 46px 0 15px;
    border: 1px solid #ced6e0;
    border-radius: 7px;
    appearance: none;
    -webkit-appearance: none;
    background: #ffffff;
    color: #222222;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    box-shadow: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .country-select:hover,
    .login-select:hover {
        border-color: #2874f0;
    }

    .country-select:focus,
    .login-select:focus {
        border-color: #2874f0;
        box-shadow: 0 0 0 3px rgba(40, 116, 240, 0.13);
    }

.country-help {
    display: inline-flex;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e9eefb;
    color: #1769e0;
    font-size: 12px;
    font-weight: 700;
    cursor: help;
}

#mobileBox,
#emailBox {
    width: 100%;
}

.mobile-line {
    width: 100%;
    height: 52px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    border: 1px solid #ced6e0;
    border-radius: 7px;
    background: #ffffff;
    overflow: hidden;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .mobile-line:focus-within {
        border-color: #2874f0;
        box-shadow: 0 0 0 3px rgba(40, 116, 240, 0.13);
    }

    .mobile-line > span {
        flex: 0 0 58px;
        height: 100%;
        padding: 0 12px;
        display: flex;
        align-items: center;
        border-right: 1px solid #e2e6ec;
        color: #222222;
        font-size: 16px;
        box-sizing: border-box;
    }

    .mobile-line input {
        flex: 1;
        min-width: 0;
        height: 100%;
        padding: 0 14px;
        border: 0;
        outline: 0;
        background: transparent;
        color: #222222;
        font-family: inherit;
        font-size: 16px;
        box-sizing: border-box;
    }

.login-right > form > input:not([type="hidden"]),
.login-right input[type="email"]:not(.mobile-line input),
.login-right input[type="text"]:not(.mobile-line input),
.login-right input[type="tel"]:not(.mobile-line input) {
    width: 100%;
    height: 52px;
    margin-bottom: 16px;
    padding: 0 14px;
    border: 1px solid #ced6e0;
    border-radius: 7px;
    background: #ffffff;
    color: #222222;
    font-family: inherit;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
}

.login-right input:focus {
    border-color: #2874f0;
    box-shadow: 0 0 0 3px rgba(40, 116, 240, 0.13);
}

.login-right input[readonly] {
    background: #f3f5f7;
    color: #555555;
    cursor: not-allowed;
}

.terms {
    margin: 20px 0 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
}

    .terms a {
        color: #2874f0;
        text-decoration: none;
    }

        .terms a:hover {
            text-decoration: underline;
        }

.login-right button,
.login-right button[type="submit"] {
    width: 100%;
    min-height: 52px;
    margin-top: 16px;
    padding: 13px 18px;
    border: 0;
    border-radius: 6px;
    background: #fb641b;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.2s ease, transform 0.1s ease;
}

    .login-right button:hover,
    .login-right button[type="submit"]:hover {
        background: #e95716;
    }

    .login-right button:active,
    .login-right button[type="submit"]:active {
        transform: translateY(1px);
    }

.login-link {
    display: block;
    height: auto;
    margin-top: 18px;
    line-height: 1.4;
    color: #2874f0;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    box-shadow: none;
}

    .login-link:hover {
        text-decoration: underline;
    }

.error,
.field-validation-error {
    display: block;
    margin: 5px 0 12px;
    color: #d93025;
    font-size: 13px;
    font-weight: 500;
}

.validation-summary-errors {
    margin: 0 0 14px;
    padding: 11px 13px;
    border: 1px solid #f1b7b7;
    border-radius: 6px;
    background: #fff1f1;
    color: #b42318;
    font-size: 13px;
}

    .validation-summary-errors ul {
        margin: 0;
        padding-left: 18px;
    }

/* =========================================
   COMPLETE REGISTRATION FORM
========================================= */

.registration-form {
    width: 100%;
}

    .registration-form .form-group {
        width: 100%;
        margin-bottom: 16px;
    }

    .registration-form label {
        display: block;
        margin: 0 0 7px;
        color: #252525;
        font-size: 15px;
        font-weight: 600;
    }

    .registration-form input {
        width: 100%;
        height: 50px;
        padding: 0 14px;
        border: 1px solid #ced6e0;
        border-radius: 7px;
        background: #ffffff;
        color: #222222;
        font-family: inherit;
        font-size: 16px;
        outline: none;
        box-sizing: border-box;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

        .registration-form input:focus {
            border-color: #2874f0;
            box-shadow: 0 0 0 3px rgba(40, 116, 240, 0.13);
        }

        .registration-form input[readonly] {
            background: #f3f5f7;
            color: #555555;
            cursor: not-allowed;
        }

    .registration-form .registration-submit {
        width: 100%;
        min-height: 52px;
        margin-top: 6px;
    }

/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {
    .login-wrapper {
        padding: 30px 16px 45px;
    }

    .login-card {
        max-width: 760px;
        grid-template-columns: minmax(270px, 38%) minmax(0, 62%);
    }

    .login-left {
        padding: 45px 30px;
    }

        .login-left h1 {
            font-size: 31px;
        }

        .login-left p {
            font-size: 16px;
        }

    .login-right {
        padding: 45px 36px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 680px) {
    .login-wrapper {
        min-height: auto;
        padding: 18px 12px 35px;
    }

    .login-card {
        display: block;
        min-height: auto;
        border-radius: 8px;
    }

    .login-left {
        padding: 28px 24px;
    }

        .login-left h1 {
            margin-bottom: 10px;
            font-size: 27px;
            line-height: 1.25;
        }

        .login-left p {
            max-width: none;
            font-size: 15px;
            line-height: 1.45;
        }

    .login-right {
        padding: 28px 22px 35px;
    }

        .login-right form {
            max-width: none;
        }

    .country-select,
    .login-select,
    .mobile-line,
    .registration-form input {
        height: 48px;
    }

    .login-right button,
    .login-right button[type="submit"] {
        min-height: 50px;
        font-size: 15px;
    }

    .otp-heading h2 {
        font-size: 26px;
    }

    .otp-field input {
        height: 52px;
        font-size: 18px;
    }

    .otp-change-row {
        display: block;
    }

        .otp-change-row a {
            margin-left: 4px;
        }
}

/* =========================================
   MY ACCOUNT PAGE
========================================= */

/*--------account css-----------*/
.account-page {
    max-width: 1200px;
    margin: 30px auto;
    display: flex;
    gap: 22px;
}

.account-sidebar {
    width: 280px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.account-user {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 18px;
    border-bottom: 1px solid #eee;
}

.user-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #2874f0;
    color: #fff;
    display: grid;
    place-items: center;
}

.account-sidebar a {
    display: block;
    padding: 16px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f1f1f1;
    font-weight: 500;
}

    .account-sidebar a.active,
    .account-sidebar a:hover {
        color: #2874f0;
        background: #f5f9ff;
    }

.account-content {
    flex: 1;
    background: #fff;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 20px;
}

.account-card {
    padding: 22px;
    border: 1px solid #eee;
    text-decoration: none;
    color: #333;
}

    .account-card span {
        font-size: 32px;
    }

    .account-card strong {
        display: block;
        margin-top: 10px;
        font-size: 18px;
    }

    .account-card p {
        color: #777;
        margin: 6px 0 0;
    }
/* =========================================
   PROFESSIONAL OTP VIEW
========================================= */

.otp-form {
    width: 100%;
    max-width: 430px;
}

.otp-heading {
    margin-bottom: 28px;
}

    .otp-heading h2 {
        margin: 0 0 10px;
        color: #1f2937;
        font-size: 30px;
        line-height: 1.25;
        font-weight: 700;
    }

    .otp-heading p {
        margin: 0;
        color: #5f6773;
        font-size: 15px;
        line-height: 1.55;
    }

    .otp-heading strong {
        color: #1f2937;
        font-weight: 700;
    }

.otp-field {
    margin-bottom: 6px;
}

    .otp-field label {
        margin-bottom: 9px;
        color: #262626;
        font-size: 15px;
        font-weight: 600;
    }

    .otp-field input {
        width: 100%;
        height: 56px;
        padding: 0 16px;
        border: 1px solid #cbd3dd;
        border-radius: 8px;
        background: #ffffff;
        color: #1f2937;
        font-size: 20px;
        font-weight: 600;
        letter-spacing: 5px;
        text-align: center;
        outline: none;
        box-sizing: border-box;
    }

        .otp-field input::placeholder {
            color: #9aa1aa;
            font-size: 16px;
            font-weight: 400;
            letter-spacing: 0;
        }

        .otp-field input:focus {
            border-color: #2874f0;
            box-shadow: 0 0 0 3px rgba(40, 116, 240, 0.13);
        }

.login-right .otp-verify-btn {
    width: 100%;
    min-height: 54px;
    margin-top: 18px;
    border: none;
    border-radius: 7px;
    background: #fb641b;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-transform: none;
    cursor: pointer;
}

    .login-right .otp-verify-btn:hover {
        background: #e95817;
    }

.otp-help-row {
    min-height: 24px;
    margin-top: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .otp-help-row #otpTimer {
        color: #737b86;
        font-size: 14px;
    }

.login-right .otp-resend-link {
    width: auto;
    min-height: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: #2874f0;
    font-size: 14px;
    font-weight: 700;
    text-transform: none;
    cursor: pointer;
}

    .login-right .otp-resend-link:hover {
        background: transparent;
        color: #145dcc;
        text-decoration: underline;
    }

.otp-change-row {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #e6e9ee;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    color: #69717c;
    font-size: 14px;
    text-align: center;
}

    .otp-change-row a {
        color: #2874f0;
        font-weight: 700;
        text-decoration: none;
    }

        .otp-change-row a:hover {
            text-decoration: underline;
        }
/* =========================================
   OTP RESEND AS TEXT LINK
========================================= */

.otp-help-row {
    min-height: 24px;
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .otp-help-row #otpTimer {
        color: #6b7280;
        font-size: 14px;
        line-height: 1.4;
    }

.login-right .otp-help-row .otp-resend-link {
    width: auto !important;
    min-height: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #2874f0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    cursor: pointer;
}

    .login-right .otp-help-row .otp-resend-link:hover {
        background: transparent !important;
        color: #145dcc !important;
        text-decoration: underline;
    }

    .login-right .otp-help-row .otp-resend-link:active {
        transform: none !important;
    }
.address-page {
    max-width: 1180px;
    margin: 35px auto;
    padding: 0 15px;
}

.page-heading {
    margin-bottom: 25px;
}

    .page-heading h1 {
        font-size: 30px;
        font-weight: 600;
        margin-bottom: 4px;
        color: #222;
    }

    .page-heading p {
        margin: 0;
        color: #666;
    }

.address-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.address-card,
.add-address-card {
    min-height: 275px;
    border: 1px solid #d5d9d9;
    border-radius: 9px;
    background: #fff;
}

.address-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.add-address-card {
    border: 2px dashed #c7c7c7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #444;
    transition: 0.2s;
}

    .add-address-card:hover {
        color: #111;
        border-color: #777;
        background: #fafafa;
    }

.plus-icon {
    color: #777;
    font-size: 65px;
    font-weight: 300;
    line-height: 1;
}

.add-address-text {
    font-size: 20px;
    font-weight: 600;
    margin-top: 12px;
}

.default-address-label {
    padding: 9px 17px;
    border-bottom: 1px solid #eee;
    background: #f7fafa;
    color: #565959;
    font-size: 13px;
    font-weight: 600;
}

.address-details {
    flex: 1;
    padding: 18px;
    color: #333;
    line-height: 1.55;
    font-size: 14px;
}

.address-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.address-phone {
    margin-top: 10px;
}

.address-actions {
    border-top: 1px solid #eee;
    padding: 13px 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    font-size: 13px;
}

    .address-actions a,
    .address-actions button {
        color: #007185;
        background: none;
        border: none;
        padding: 0;
        font-size: 13px;
        cursor: pointer;
        text-decoration: none;
    }

        .address-actions a:hover,
        .address-actions button:hover {
            color: #c7511f;
            text-decoration: underline;
        }

    .address-actions span {
        color: #ccc;
    }

.inline-form {
    display: inline;
    margin: 0;
}

.no-address-message {
    margin-top: 25px;
    padding: 18px;
    border: 1px solid #ddd;
    border-radius: 7px;
    background: #fafafa;
}

@media (max-width: 992px) {
    .address-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .address-grid {
        grid-template-columns: 1fr;
    }

    .page-heading h1 {
        font-size: 25px;
    }
}