/* Main Container */
#custom-login-wrapper {
    display: flex;
    width: 900px;
    max-width: 95%;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 600px;
    margin: 0 auto;
    /* Center it if used in shortcode */
    font-family: 'Inter', sans-serif;
}

/* Ensure body.login specific styles are also applied if we are inside the wrapper */
body.login {
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

/* Hide default elements we don't want or will move (Only on actual login page) */
body.login h1 {
    display: none;
}

body.login #backtoblog,
body.login #nav {
    text-align: center;
    padding: 0;
    margin: 20px 0 0;
}

/* Left Panel (Branding) */
.login-left-panel {
    flex: 1;
    background: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%);
    /* Pink to Purple gradient */
    color: #fff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.login-left-panel h2 {
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 5px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-left-panel .sub-title {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.login-left-panel img.hero-image {
    width: 100%;
    max-width: 280px;
    border-radius: 15px;
    margin-bottom: 20px;
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);  */
    object-fit: cover;
}

.login-left-panel h3 {
    font-size: 22px;
    margin: 10px 0;
    color: #fff;
}

.login-left-panel p {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.9;
    max-width: 80%;
    margin: 0 auto;
}

.login-left-panel .copyright {
    position: absolute;
    bottom: 20px;
    font-size: 12px;
    opacity: 0.7;
}

/* Right Panel (Form) */
.login-right-panel {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

.login-right-panel h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
}

.login-right-panel p.desc {
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

/* Form Styles - Scoped to wrapper or body.login */
body.login form,
#custom-login-wrapper form {
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: none;
}

body.login label,
#custom-login-wrapper label {
    font-size: 14px;
    color: #333;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"],
#custom-login-wrapper input[type="text"],
#custom-login-wrapper input[type="password"],
#custom-login-wrapper input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f9f9f9;
    font-size: 14px;
    margin-bottom: 20px;
    box-shadow: none;
    color: #333;
    max-width: 100%;
    /* Ensure it doesn't overflow */
    box-sizing: border-box;
}

body.login input[type="password"],
#custom-login-wrapper input[type="password"] {
    letter-spacing: 2px;
    font-weight: 600;
    line-height: normal;
    padding: 12px 15px;
}

body.login input[type="password"]::placeholder,
#custom-login-wrapper input[type="password"]::placeholder {
    letter-spacing: normal;
    font-weight: normal;
}

body.login input[type="text"]:focus,
body.login input[type="password"]:focus,
#custom-login-wrapper input[type="text"]:focus,
#custom-login-wrapper input[type="password"]:focus {
    border-color: #e91e63;
    box-shadow: 0 0 0 1px #e91e63;
    background: #fff;
    outline: none;
}

body.login .forgetmenot,
#custom-login-wrapper .forgetmenot {
    float: none;
    margin-bottom: 20px;
    display: none;
    /* Hide remember me for cleaner look or style it if needed */
}

body.login .submit,
#custom-login-wrapper .submit {
    float: none;
    margin: 0;
    padding: 0;
}

body.login input[type="submit"],
#custom-login-wrapper input[type="submit"] {
    width: 100%;
    background: #e91e63;
    /* Pink */
    border: none;
    color: #fff;
    padding: 12px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    text-shadow: none;
    box-shadow: none;
    height: auto;
    line-height: normal;
}

body.login input[type="submit"]:hover,
#custom-login-wrapper input[type="submit"]:hover {
    background: #d81b60;
}

/* Error Message */
.error-message {
    background-color: #ffe6e6;
    color: #d63031;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid #d63031;
}

/* Register Form Specifics */
#register-view form p {
    margin-bottom: 15px;
}

#register-view label {
    margin-bottom: 5px;
    display: block;
}

/* Inline Validation Errors */
.input-error {
    border-color: #d63031 !important;
    background-color: #fff5f5 !important;
}

.field-error-msg {
    color: #d63031;
    font-size: 12px;
    margin-top: -15px;
    margin-bottom: 15px;
    display: block;
}

/* Password Toggle Icon */
.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
    z-index: 10;
}

/* Ensure parent has relative positioning for the icon */
#custom-login-wrapper p {
    position: relative;
}

/* Links */
.login-links {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

.login-links a {
    color: #e91e63;
    text-decoration: none;
    font-weight: 600;
}

.login-links span {
    color: #666;
}

/* Dashboard Styles */
#custom-dashboard-wrapper {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    background: #f9f9f9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    min-height: 600px;
    font-family: 'Inter', sans-serif;
}

/* Sidebar */
.dashboard-sidebar {
    width: 280px;
    background: #fff;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.user-profile-summary {
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid #f5f5f5;
}

.user-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #e91e63;
    padding: 2px;
}

.user-info h3 {
    font-size: 18px;
    margin: 0 0 5px;
    color: #333;
}

.user-info p {
    font-size: 13px;
    color: #888;
    margin: 0;
}

.dashboard-menu ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.dashboard-menu li a {
    display: flex;
    align-items: center;
    padding: 15px 30px;
    color: #555;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.dashboard-menu li a:hover,
.dashboard-menu li.active a {
    background: #fff5f8;
    color: #e91e63;
    border-left-color: #e91e63;
}

.dashboard-menu li a span {
    margin-right: 15px;
    font-size: 18px;
}

.dashboard-menu li a.logout-link {
    color: #d63031;
}

.dashboard-menu li a.logout-link:hover {
    background: #fff5f5;
    border-left-color: #d63031;
}

/* Main Content */
.dashboard-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.welcome-banner {
    background: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%);
    color: #fff;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.2);
}

.welcome-banner h2 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #fff;
}

.welcome-banner p {
    margin: 0;
    opacity: 0.9;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 24px;
}

.icon-orders {
    background: #e3f2fd;
    color: #2196f3;
}

.icon-points {
    background: #fff8e1;
    color: #ffc107;
}

.icon-coupons {
    background: #e8f5e9;
    color: #4caf50;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.stat-label {
    font-size: 13px;
    color: #888;
}

/* Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    font-size: 20px;
    color: #333;
    margin: 0;
}

.view-all {
    color: #e91e63;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

/* Orders Table */
.orders-table-wrapper {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.custom-orders-table {
    width: 100%;
    border-collapse: collapse;
}

.custom-orders-table th {
    background: #f8f9fa;
    padding: 15px 20px;
    text-align: left;
    font-size: 13px;
    color: #666;
    font-weight: 600;
    border-bottom: 1px solid #eee;
}

.custom-orders-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #333;
}

.custom-orders-table tr:last-child td {
    border-bottom: none;
}

.order-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.status-completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-processing {
    background: #e3f2fd;
    color: #1565c0;
}

.status-on-hold {
    background: #fff8e1;
    color: #f57f17;
}

.status-pending {
    background: #fff3e0;
    color: #ef6c00;
}

.status-cancelled,
.status-failed {
    background: #ffebee;
    color: #c62828;
}

.btn-view-order {
    padding: 6px 12px;
    border: 1px solid #eee;
    border-radius: 6px;
    color: #555;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s;
}

.btn-view-order:hover {
    background: #e91e63;
    color: #fff;
    border-color: #e91e63;
}

.no-orders {
    padding: 40px;
    text-align: center;
}

.no-orders p {
    color: #888;
    margin-bottom: 20px;
}

.btn-shop-now {
    display: inline-block;
    background: #e91e63;
    color: #fff;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-shop-now:hover {
    background: #d81b60;
}

/* Responsive */
@media (max-width: 768px) {
    #custom-dashboard-wrapper {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .dashboard-content {
        padding: 20px;
    }

    .custom-orders-table {
        display: block;
        overflow-x: auto;
    }
}

/* Social Login Placeholder (Visual only) */
.social-login {
    margin-top: 30px;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.social-login p {
    color: #999;
    font-size: 12px;
    margin-bottom: 15px;
    background: #fff;
    display: inline-block;
    padding: 0 10px;
    position: relative;
    top: -28px;
}

.social-btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-btn {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    width: 140px;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    #custom-login-wrapper {
        flex-direction: column;
        width: 100%;
        height: auto;
        border-radius: 0;
        min-height: 100vh;
    }

    .login-left-panel {
        padding: 30px 20px;
        flex: 0 0 auto;
    }

    .login-left-panel img.hero-image {
        max-width: 150px;
    }

    .login-right-panel {
        padding: 30px 20px;
        flex: 1 0 auto;
    }
}

/* Modal Styles */
.customlog-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.customlog-modal-content {
    background-color: #ffffff;
    margin: auto;
    padding: 40px;
    border: none;
    width: 90%;
    max-width: 420px;
    border-radius: 24px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.customlog-close {
    color: #ccc;
    float: right;
    font-size: 24px;
    font-weight: bold;
    position: absolute;
    top: 20px;
    right: 25px;
    cursor: pointer;
    transition: all 0.2s;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.customlog-close:hover,
.customlog-close:focus {
    color: #e91e63;
    background: #fff0f5;
    transform: rotate(90deg);
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fff0f5 0%, #ffeef8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 10px 20px rgba(233, 30, 99, 0.1);
}

.modal-icon .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: #e91e63;
}

.customlog-modal h3 {
    margin: 0 0 15px;
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.customlog-modal p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
    font-size: 15px;
}

#modal-ack-btn {
    background: linear-gradient(135deg, #e91e63 0%, #d81b60 100%);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
    width: 100%;
}

#modal-ack-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.4);
    background: linear-gradient(135deg, #d81b60 0%, #c2185b 100%);
}

/* Social Login Styles */
.social-login-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0 20px;
    color: #888;
    font-size: 13px;
}

.social-login-separator::before,
.social-login-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eee;
}

.social-login-separator span {
    padding: 0 10px;
}

.social-login-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.button-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.button-facebook {
    background-color: #1877f2;
    color: white;
}

.button-facebook:hover {
    background-color: #166fe5;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.button-google {
    background-color: #fff;
    color: #444;
    border: 1px solid #ddd;
}

.button-google:hover {
    background-color: #f8f9fa;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.button-social .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.to-register {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.to-register a {
    color: #e91e63;
    text-decoration: none;
    font-weight: 600;
}

.to-register a:hover {
    text-decoration: underline;
}