/* =========================================================
   Global
========================================================= */
.account-body {
    font-family: 'Inter', sans-serif;
    background-color: black;
    margin: 0;
    padding: 0;
    color: white;
}


/* =========================================================
   Wrapper to center card on mobile
========================================================= */
.account-wrapper {
    min-height: 100vh;              /* full screen height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;    /* desktop layout stays same */
}

/* center card vertically on mobile */
@media (max-width: 768px) {
    .account-wrapper {
        min-height: auto;     /* let it wrap content */
        justify-content: center;    /* vertical centering */
        padding: 1rem;
    }
}


/* =========================================================
   Title: My Shop
========================================================= */
.account-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin: 3rem 0 2rem 0;
}

.account-home-link {
    color: #09b37d;
    font-weight: bold;
    text-decoration: none;
}

.account-home-link:hover {
    text-decoration: none;
    color: #0ce4a0;
}

/* =========================================================
   Card containers (login + signup)
========================================================= */
.login-card,
.signup-card,
.change-password-card {
    background-color: rgb(240, 240, 240);
    padding: 1rem;
    border-radius: 0.5rem;
    width: 100%;
    max-width: 300px;
    word-wrap: break-word;        /* legacy support */
    overflow-wrap: anywhere;     /* modern browsers */
    word-break: break-word;      /* fallback */
    margin: 0 auto;
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}


/* =========================================================
   Card Headers
========================================================= */
.login-card h2,
.signup-card h2,
.change-password-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: #111827;
}


/* =========================================================
   Inputs
========================================================= */
.login-card input,
.signup-card input,
.change-password-card input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1.25rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.login-card input:focus,
.signup-card input:focus,
.change-password-card input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}


/* =========================================================
   Buttons
========================================================= */
.login-card button,
.signup-card button,
.change-password-card button {
    background-color: #10b981;
    color: white;
    padding: 0.6rem;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 18px;
    text-align: center;
    width: 100%;
    margin-top: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    outline: none;
    border: none;
}

.login-card button:hover,
.signup-card button:hover,
.change-password-card button:hover {
    background-color: #057c56;
}


/* =========================================================
   Card footer text & links
========================================================= */
.login-card p,
.signup-card p,
.change-password-card p {
    margin-top: 1.25rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.95rem;
}

.login-card p a,
.signup-card p a,
.change-password-card p a {
    color: #10b981;
}

.login-card p a:hover,
.signup-card p a:hover,
.change-password-card p a:hover {
    text-decoration: underline;
}

#password-rules {
    text-align: left;
    list-style: none;
    padding-left: 0;
    font-size: 0.8rem;
    color: grey !important;
    margin-top: -0.5rem;
}

/* OTP */
.otp-timer {
    color: var(--linkColor);
    text-align: right;
    margin-top: -0.5rem;
    font-size: 0.9rem;
}

.otp-timer a {
    color: var(--linkColor);
    text-decoration: none;
}

.otp-timer a:hover {
    color: var(--linkHoverColor);
    text-decoration: none;
}

.otp-timer #timerValue {
    color: #808080;
}

/* Login Attempt */
.login-attempt-left {
    color: #808080;
    text-align: right;
    margin-top: -0.5rem;
    font-size: 0.9rem;
}