/* ==========================================================================
   Sheraz Account Page - Standalone Centered Layout
   Prefix: sheraz-acct-
   ========================================================================== */

/* Hide Astra header, footer, and sidebar on the account page */
.page-template-default.sheraz-account-page .site-header,
.page-template-default.sheraz-account-page .ast-above-header,
.page-template-default.sheraz-account-page .ast-below-header,
.page-template-default.sheraz-account-page #ast-mobile-header,
.page-template-default.sheraz-account-page .site-footer,
.page-template-default.sheraz-account-page .ast-footer-overlay,
.page-template-default.sheraz-account-page .ast-small-footer,
.page-template-default.sheraz-account-page #ast-scroll-top,
.page-template-default.sheraz-account-page .entry-header,
.page-template-default.sheraz-account-page .ast-breadcrumbs-wrapper {
    display: none !important;
}

.page-template-default.sheraz-account-page .site-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.page-template-default.sheraz-account-page #content {
    padding: 0 !important;
}

/* Full-page background */
.sheraz-acct-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eef9 50%, #f5f7fa 100%);
    padding: 40px 20px;
    font-family: inherit;
}

/* Logo area */
.sheraz-acct-logo {
    margin-bottom: 24px;
    text-align: center;
}

.sheraz-acct-logo img {
    max-height: 60px;
    width: auto;
}

.sheraz-acct-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.5px;
}

.sheraz-acct-logo-text span {
    color: #2563eb;
}

.sheraz-acct-tagline {
    font-size: 14px;
    color: #64748b;
    margin-top: 4px;
}

/* Card container */
.sheraz-acct-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 440px;
    overflow: hidden;
}

/* Tab navigation */
.sheraz-acct-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
}

.sheraz-acct-tab {
    flex: 1;
    padding: 16px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.sheraz-acct-tab:hover {
    color: #334155;
}

.sheraz-acct-tab.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

/* Form panels */
.sheraz-acct-panel {
    display: none;
    padding: 32px;
}

.sheraz-acct-panel.active {
    display: block;
}

/* Form elements */
.sheraz-acct-field {
    margin-bottom: 20px;
}

.sheraz-acct-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    margin-bottom: 6px;
}

.sheraz-acct-field label .sheraz-acct-optional {
    font-weight: 400;
    color: #94a3b8;
    font-size: 13px;
}

.sheraz-acct-field input {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    color: #1e293b;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.sheraz-acct-field input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: #ffffff;
}

.sheraz-acct-field input.sheraz-acct-error-input {
    border-color: #ef4444;
}

/* Name row (first + last side by side) */
.sheraz-acct-name-row {
    display: flex;
    gap: 12px;
}

.sheraz-acct-name-row .sheraz-acct-field {
    flex: 1;
}

/* Submit button */
.sheraz-acct-submit {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: #2563eb;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 4px;
}

.sheraz-acct-submit:hover {
    background: #1d4ed8;
}

.sheraz-acct-submit:active {
    transform: scale(0.99);
}

.sheraz-acct-submit:disabled {
    background: #93c5fd;
    cursor: not-allowed;
}

/* Messages */
.sheraz-acct-message {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    display: none;
}

.sheraz-acct-message.sheraz-acct-msg-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    display: block;
}

.sheraz-acct-message.sheraz-acct-msg-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    display: block;
}

/* Links */
.sheraz-acct-links {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: #64748b;
}

.sheraz-acct-links a,
.sheraz-acct-link {
    color: #2563eb;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
}

.sheraz-acct-links a:hover,
.sheraz-acct-link:hover {
    text-decoration: underline;
}

/* Back to site link */
.sheraz-acct-back {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
}

.sheraz-acct-back a {
    color: #64748b;
    text-decoration: none;
}

.sheraz-acct-back a:hover {
    color: #2563eb;
}

/* Password toggle */
.sheraz-acct-pw-wrap {
    position: relative;
}

.sheraz-acct-pw-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 13px;
    padding: 4px;
}

.sheraz-acct-pw-toggle:hover {
    color: #64748b;
}

/* Logged-in dashboard preview */
.sheraz-acct-dashboard {
    padding: 32px;
}

.sheraz-acct-welcome {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.sheraz-acct-email-display {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
}

.sheraz-acct-dash-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sheraz-acct-dash-link {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #334155;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s;
}

.sheraz-acct-dash-link:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
}

.sheraz-acct-dash-icon {
    margin-right: 12px;
    font-size: 18px;
}

.sheraz-acct-logout {
    display: inline-block;
    margin-top: 20px;
    color: #ef4444;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

.sheraz-acct-logout:hover {
    text-decoration: underline;
}

/* Loading spinner */
.sheraz-acct-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: sheraz-acct-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes sheraz-acct-spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 480px) {
    .sheraz-acct-wrapper {
        padding: 20px 16px;
        justify-content: flex-start;
        padding-top: 60px;
    }

    .sheraz-acct-card {
        border-radius: 10px;
    }

    .sheraz-acct-panel {
        padding: 24px 20px;
    }

    .sheraz-acct-name-row {
        flex-direction: column;
        gap: 0;
    }
}
