/* =========================================================
   SHREE GANPATI INFOTECH
   ACCOUNT PAGE
========================================================= */

.account-page {
    min-height: 70vh;
    padding: 70px 0 100px;
    background: #f8fafb;
}

.account-container {
    width: min(1180px, 92%);
    margin: 0 auto;
}


/* =========================================================
   HEADINGS
========================================================= */

.account-heading,
.auth-heading {
    text-align: center;
    margin-bottom: 34px;
}

.account-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;

    color: #df8d28;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.account-eyebrow::before,
.account-eyebrow::after {
    content: "";
    width: 28px;
    height: 1px;
    background: #df8d28;
}

.account-heading h1,
.auth-heading h1 {
    margin: 0;

    color: #123c45;

    font-family: "Manrope", sans-serif;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.04em;
}

.account-heading p,
.auth-heading p {
    margin: 12px auto 0;
    max-width: 480px;

    color: #687276;

    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   MESSAGES
========================================================= */

.account-flash,
.account-errors {
    max-width: 520px;
    margin: 0 auto 24px;
    padding: 15px 20px;

    border-radius: 12px;

    font-family: "Inter", sans-serif;
    font-size: 13px;
}

.account-flash {
    display: flex;
    align-items: center;
    gap: 10px;

    background: #e6f5ec;
    border: 1px solid #b9e0c7;

    color: #23684a;
}

.account-errors {
    background: #fdeeee;
    border: 1px solid #f3c4c4;

    color: #a13a3a;
}

.account-errors strong {
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-errors ul {
    margin: 10px 0 0;
    padding-left: 22px;
}

.account-errors li {
    margin: 3px 0;
}


/* =========================================================
   AUTH CARD
========================================================= */

.auth-card {
    width: min(520px, 100%);
    margin: 0 auto;
    padding: 38px 34px;

    background: #ffffff;

    border: 1px solid #e7ecee;
    border-radius: 22px;

    box-shadow: 0 15px 45px rgba(18, 60, 69, .07);
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;

    margin-bottom: 26px;
    padding: 5px;

    background: #f1f4f4;
    border-radius: 12px;
}

.auth-tabs a {
    padding: 11px 10px;

    border-radius: 9px;

    color: #687276;

    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;

    transition:
        background .2s ease,
        color .2s ease;
}

.auth-tabs a.active {
    background: #123c45;
    color: #ffffff;
}

.auth-tabs a:not(.active):hover {
    color: #df8d28;
}


/* =========================================================
   FORMS
========================================================= */

.account-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.form-field label {
    color: #123c45;

    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 700;
}

.form-field input {
    width: 100%;

    padding: 13px 15px;

    border: 1px solid #dfe6e8;
    border-radius: 10px;

    background: #ffffff;
    color: #123c45;

    font-family: "Inter", sans-serif;
    font-size: 14px;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.form-field input:focus {
    border-color: #df8d28;
    box-shadow: 0 0 0 3px rgba(223, 141, 40, .15);
}

.form-field input:disabled {
    background: #f3f6f6;
    color: #8a9396;
    cursor: not-allowed;
}

.form-field small {
    color: #8a9396;

    font-family: "Inter", sans-serif;
    font-size: 11px;
}

.account-btn {
    min-height: 48px;

    padding: 0 26px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    border: 0;
    border-radius: 10px;

    background: #123c45;
    color: #ffffff;

    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 800;

    text-decoration: none;

    cursor: pointer;

    transition:
        background .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.account-btn:hover {
    background: #df8d28;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(223, 141, 40, .22);
}

.account-form .account-btn {
    align-self: flex-start;
}

.auth-card .account-form .account-btn {
    align-self: stretch;
}


/* =========================================================
   DASHBOARD LAYOUT
========================================================= */

.account-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.account-sidebar,
.account-content {
    background: #ffffff;

    border: 1px solid #e7ecee;
    border-radius: 20px;

    box-shadow: 0 5px 20px rgba(18, 60, 69, .04);
}

.account-sidebar {
    padding: 18px;
}

.account-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px 14px;

    border-radius: 10px;

    color: #123c45;

    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 700;

    text-decoration: none;

    transition:
        background .2s ease,
        color .2s ease;
}

.account-sidebar nav a i {
    width: 18px;

    color: #df8d28;

    text-align: center;
}

.account-sidebar nav a:hover {
    background: #fff6e9;
}

.account-sidebar nav a.active {
    background: #123c45;
    color: #ffffff;
}

.account-sidebar nav a.active i {
    color: #f0c17f;
}

.nav-count {
    margin-left: auto;

    min-width: 22px;
    padding: 2px 7px;

    border-radius: 20px;

    background: #df8d28;
    color: #ffffff;

    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.logout-btn {
    width: 100%;

    margin-top: 14px;
    padding: 12px 14px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    border: 1px solid #f0d0d0;
    border-radius: 10px;

    background: #ffffff;
    color: #d95b5b;

    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 800;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease;
}

.logout-btn:hover {
    background: #d95b5b;
    color: #ffffff;
}

.account-content {
    padding: 32px;
}

.account-content h2 {
    margin: 0 0 22px;

    color: #123c45;

    font-family: "Manrope", sans-serif;
    font-size: 22px;
    font-weight: 800;
}

.account-content .account-form {
    max-width: 480px;
}


/* =========================================================
   ORDERS
========================================================= */

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.order-card {
    padding: 20px;

    border: 1px solid #e7ecee;
    border-radius: 14px;

    background: #fcfdfd;
}

.order-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;

    margin-bottom: 14px;
    padding-bottom: 14px;

    border-bottom: 1px solid #eef1f2;
}

.order-number {
    display: block;

    color: #123c45;

    font-family: "Manrope", sans-serif;
    font-size: 16px;
    font-weight: 800;
}

.order-date {
    color: #8a9396;

    font-family: "Inter", sans-serif;
    font-size: 12px;
}

.order-status {
    padding: 5px 12px;

    border-radius: 20px;

    background: #eef1f2;
    color: #687276;

    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.status-pending    { background: #fff4e4; color: #b56f13; }
.status-confirmed,
.status-processing { background: #e5f0fb; color: #2a6db3; }
.status-shipped    { background: #ece8fb; color: #5a45b3; }
.status-delivered  { background: #e6f5ec; color: #23684a; }
.status-cancelled,
.status-canceled   { background: #fdeeee; color: #a13a3a; }

.order-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;

    padding: 7px 0;

    color: #123c45;

    font-family: "Inter", sans-serif;
    font-size: 13px;
}

.order-card-bottom {
    display: flex;
    justify-content: space-between;
    gap: 14px;

    margin-top: 12px;
    padding-top: 14px;

    border-top: 1px solid #eef1f2;

    color: #687276;

    font-family: "Inter", sans-serif;
    font-size: 13px;
}

.order-card-bottom strong {
    color: #123c45;

    font-family: "Manrope", sans-serif;
    font-size: 15px;
}

.orders-empty {
    padding: 40px 10px;

    text-align: center;
}

.orders-empty i {
    margin-bottom: 14px;

    color: #df8d28;

    font-size: 40px;
}

.orders-empty p {
    margin: 0 0 20px;

    color: #687276;

    font-family: "Inter", sans-serif;
    font-size: 14px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .account-layout {
        grid-template-columns: 1fr;
    }

    .account-sidebar nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .account-sidebar nav a {
        flex: 1 1 auto;
    }
}

@media (max-width: 600px) {

    .account-page {
        padding: 42px 0 65px;
    }

    .auth-card {
        padding: 28px 20px;
    }

    .account-content {
        padding: 22px;
    }

    .order-card-top,
    .order-card-bottom {
        flex-direction: column;
    }
}