/* ==========================================================================
   Biswas Enterprise - Standalone Clean Auth Page (auth.css)
   ========================================================================== */

.clean-auth-body {
    background-color: #f2f6f3;
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
}

.auth-page-section.clean-standalone-auth {
    padding: 40px 20px;
    background: radial-gradient(circle at 50% 30%, #ffffff 0%, #e9efe9 60%, #dfebd9 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
}

/* Floating Back to Store Button */
.auth-back-store-btn {
    position: absolute;
    top: 28px;
    left: 36px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #ffffff;
    color: var(--primary, #1b3b2b);
    font-size: 13px;
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid rgba(27, 59, 43, 0.12);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    transition: all 0.25s ease;
    z-index: 10;
}

.auth-back-store-btn:hover {
    background: var(--primary, #1b3b2b);
    color: #ffffff;
    transform: translateX(-3px);
    box-shadow: 0 6px 16px rgba(27, 59, 43, 0.2);
}

.clean-auth-logo-wrapper {
    text-align: center;
    margin-bottom: 24px;
}

.clean-auth-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.06));
    transition: transform 0.3s ease;
}

.clean-auth-logo-img:hover {
    transform: scale(1.03);
}

.auth-container {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
}

/* Glassmorphism Auth Card */
.auth-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(27, 59, 43, 0.12);
    border-radius: 24px;
    box-shadow: 0 24px 48px rgba(27, 59, 43, 0.08), 0 2px 6px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-card-header {
    padding: 32px 32px 0;
    text-align: center;
}

.auth-card-logo-link {
    display: inline-block;
    margin-bottom: 16px;
    text-decoration: none;
}

.auth-card-logo-img {
    height: 72px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.05));
    transition: transform 0.3s ease;
}

.auth-card-logo-img:hover {
    transform: scale(1.05);
}

.auth-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(27, 59, 43, 0.08);
    color: var(--primary, #1b3b2b);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 14px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.auth-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: #1a2721;
    margin-bottom: 6px;
}

.auth-card-subtitle {
    font-size: 13.5px;
    color: #5c6b63;
    margin-bottom: 22px;
}

/* Admin Banner Box */
.admin-login-banner {
    background: linear-gradient(135deg, #1b3b2b 0%, #2a523c 100%);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 12.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(27, 59, 43, 0.15);
}

.admin-banner-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-banner-icon {
    width: 20px;
    height: 20px;
    color: #d4af37;
    flex-shrink: 0;
}

.admin-quick-btn {
    background: #d4af37;
    color: #1b3b2b;
    border: none;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.admin-quick-btn:hover {
    background: #e5c158;
    transform: translateY(-1px);
}

/* Auth Tabs Header */
.auth-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8e4;
    padding: 0 32px;
}

.auth-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 14px 8px;
    font-size: 14px;
    font-weight: 600;
    color: #728277;
    cursor: pointer;
    position: relative;
    transition: color 0.25s ease;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tab-shield-icon {
    width: 15px;
    height: 15px;
    color: inherit;
    flex-shrink: 0;
}

.auth-tab-btn.active {
    color: var(--primary, #1b3b2b);
}

.auth-tab-btn.tab-admin-btn.active {
    color: #92400e;
}

.auth-tab-btn.tab-admin-btn.active::after {
    background-color: #d4af37;
}

.auth-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary, #1b3b2b);
    border-radius: 3px 3px 0 0;
}

/* Admin Tab Notice Box */
.admin-tab-notice {
    background: #fefce8;
    border: 1px dashed #eab308;
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 10px;
}

.admin-notice-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #854d0e;
}

.btn-fill-admin-preset {
    background: #d4af37;
    color: #1b3b2b;
    border: none;
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-fill-admin-preset:hover {
    background: #b59226;
    color: #ffffff;
}

/* Form Body */
.auth-card-body {
    padding: 30px 32px;
}

.auth-form-pane {
    display: none;
    animation: fadeInTab 0.35s ease forwards;
}

.auth-form-pane.active {
    display: block;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 18px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #2b3a32;
    margin-bottom: 6px;
}

.form-label .required {
    color: #d9534f;
    margin-left: 2px;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-icon-wrapper svg.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #8c9e93;
    pointer-events: none;
    z-index: 3;
    transition: color 0.2s ease;
}

.form-input {
    width: 100% !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    padding-left: 44px !important;
    padding-right: 40px !important;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #1a2721;
    background-color: #fcfdfe;
    border: 1.5px solid #d8e2dc;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box !important;
    line-height: 1.4;
}

.form-input.admin-field-highlight {
    background-color: #fffcfa;
    border-color: #ebd399;
}

.form-input:focus {
    border-color: var(--primary, #1b3b2b);
    box-shadow: 0 0 0 3px rgba(27, 59, 43, 0.12);
    background-color: #ffffff;
}

.form-input:focus + svg.input-icon {
    color: var(--primary, #1b3b2b);
}

.toggle-password-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #8c9e93;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password-btn:hover {
    color: #1b3b2b;
}

.form-extra-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 22px;
}

.remember-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #4a5a51;
}

.remember-checkbox input {
    accent-color: var(--primary, #1b3b2b);
    width: 16px;
    height: 16px;
}

.forgot-password-link {
    color: var(--primary, #1b3b2b);
    font-weight: 600;
    text-decoration: none;
    transition: text-decoration 0.2s ease;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.btn-auth-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1b3b2b 0%, #2a523c 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(27, 59, 43, 0.25);
    transition: all 0.25s ease;
}

.btn-auth-submit:hover {
    background: linear-gradient(135deg, #153023 0%, #214331 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(27, 59, 43, 0.35);
}

.btn-auth-submit:active {
    transform: translateY(0);
}

/* Alert Notification Boxes */
.alert-box {
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}

.alert-box-danger {
    background-color: #fdf2f2;
    color: #9b1c1c;
    border: 1px solid #f8b4b4;
}

.alert-box-success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Footer Link */
.auth-footer-text {
    text-align: center;
    font-size: 13px;
    color: #6b7c72;
    margin-top: 20px;
}

.auth-footer-text a {
    color: var(--primary, #1b3b2b);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer-text a:hover {
    text-decoration: underline;
}

.clean-auth-bottom-copy {
    text-align: center;
    font-size: 12px;
    color: #78897e;
    margin-top: 24px;
}

/* Account Page Dashboard Styles */
.account-dashboard-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5ebe7;
    padding: 36px;
    max-width: 720px;
    margin: 0 auto;
}

.account-header-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eaf0ec;
    margin-bottom: 28px;
}

.account-avatar-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1b3b2b 0%, #2a523c 100%);
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(27, 59, 43, 0.2);
}

.account-user-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #1a2721;
    margin-bottom: 4px;
}

.account-role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-badge-admin {
    background-color: #fef3c7;
    color: #92400e;
}

.role-badge-user {
    background-color: #e0e7ff;
    color: #3730a3;
}

.account-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.account-detail-item {
    background-color: #f8faf8;
    border: 1px solid #e8eee9;
    border-radius: 12px;
    padding: 16px;
}

.account-detail-item label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #728277;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.account-detail-item span {
    font-size: 15px;
    font-weight: 600;
    color: #1a2721;
}

@media (max-width: 600px) {
    .auth-back-store-btn {
        top: 16px;
        left: 16px;
        padding: 8px 14px;
        font-size: 12px;
    }
    .auth-card-header {
        padding: 24px 20px 0;
    }
    .auth-card-body {
        padding: 20px;
    }
    .form-row-2col {
        grid-template-columns: 1fr;
    }
    .admin-login-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .account-details-grid {
        grid-template-columns: 1fr;
    }
}
