/* =========================================
 * Proforweb Premium UI Design V4
 * Luxury, Clean & Interactive Layout
========================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary-gold: #ca9236;
    --primary-gold-hover: #b58330;
    --dark-text: #111111;
    --muted-text: #666666;
    --input-border: #e8e8e8;
    --bg-white: #ffffff;
}

/* =========================================
   1. OVERLAY & SIDEBAR (Glassmorphism & Smooth Slide)
========================================= */
.proforweb-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    /* Premium Blur Effect */
    -webkit-backdrop-filter: blur(8px);
    z-index: 99998;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.is-custom-offcanvas {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: var(--bg-white);
    z-index: 999999;
    transition: right 0.5s cubic-bezier(0.25, 1, 0.15, 1);
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.15);
    padding: 0 !important;
    display: flex;
    flex-direction: column;
}

.is-custom-offcanvas.open {
    right: 0;
}

.proforweb-overlay.open {
    display: block;
    opacity: 1;
}

/* Perfect round close button */
.close-proforweb-sidebar {
    position: absolute !important;
    top: 15px !important;
    right: 20px !important;
    background: transparent !important;
    color: #333 !important;
    border: none !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    font-size: 24px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    z-index: 100 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

.close-proforweb-sidebar:hover {
    background: #f0f0f0 !important;
    color: #ca9236 !important;
}

/* =========================================
   2. PAGE MODE CARD DESIGN (My Account)
========================================= */
.proforweb-login-wrapper:not(.is-custom-offcanvas) {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 80px 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: #fafafa;
}

.proforweb-login-wrapper:not(.is-custom-offcanvas) .proforweb-login-card {
    background: var(--bg-white) !important;
    width: 100% !important;
    max-width: 460px !important;
    padding: 60px 50px !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
    margin: 0 auto !important;
    position: relative;
    border-top: 4px solid var(--primary-gold) !important;
    /* Premium Accent Bar on top */
}

/* Sidebar Specific Padding */
.is-custom-offcanvas .proforweb-login-card {
    padding: 100px 40px 50px 40px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* =========================================
   3. TYPOGRAPHY & LOGO
========================================= */
.proforweb-logo {
    margin-bottom: 40px !important;
    text-align: center !important;
}

.proforweb-logo img {
    max-width: 200px !important;
    height: auto !important;
    margin: 0 auto !important;
}

.proforweb-header {
    text-align: center;
    margin-bottom: 35px;
}

.proforweb-header h2 {
    font-family: 'Playfair Display', serif !important;
    font-size: 30px !important;
    color: var(--dark-text) !important;
    margin-bottom: 10px !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
}

.proforweb-header p {
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px;
    color: var(--muted-text);
    margin: 0 !important;
    font-weight: 400 !important;
}

/* =========================================
   4. FORM ELEMENTS (Ultra Sleek & Interactive)
========================================= */
.phone-input-group {
    display: flex !important;
    align-items: stretch !important;
    border: 2px solid var(--input-border) !important;
    border-radius: 8px !important;
    height: 48px !important;
    /* Box height slightly reduced */
    background: var(--bg-white) !important;
    margin-bottom: 25px;
    transition: all 0.3s ease !important;
}

/* Focus Effect */
.phone-input-group:focus-within {
    border-color: var(--primary-gold) !important;
    box-shadow: 0 5px 15px rgba(202, 146, 54, 0.1) !important;
    transform: translateY(-2px) !important;
}

.country-code {
    padding: 0 8px 0 12px !important;
    /* Empty space (Padding) reduced */
    background: #fdfdfd !important;
    color: var(--dark-text) !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    border-right: 1px solid var(--input-border) !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    flex: 0 0 90px !important;
    /* FIX: Force max width */
    max-width: 90px !important;
    width: 90px !important;
}

.phone-input-group:focus-within .country-code {
    border-color: var(--primary-gold) !important;
}

.phone-input-group input {
    flex: 1 !important;
    border: none !important;
    padding: 0 12px !important;
    /* Empty space before text reduced */
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    /* Text size reduced */
    outline: none !important;
    color: var(--dark-text) !important;
    background: transparent !important;
    font-weight: 400 !important;
    letter-spacing: 0.2px !important;
}

/* Placeholder (Enter your mobile) made slightly smaller and smoother */
.phone-input-group input::placeholder {
    font-size: 13px !important;
    color: #999999 !important;
}

/* Action Buttons */
.continue-btn {
    width: 100% !important;
    background: var(--primary-gold) !important;
    color: #fff !important;
    height: 48px !important;
    /* Matched size with input box */
    border: none !important;
    border-radius: 8px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 8px 20px rgba(202, 146, 54, 0.25) !important;
}

.continue-btn:hover {
    background: var(--primary-gold-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 25px rgba(202, 146, 54, 0.35) !important;
}

/* Terms */
.terms-text {
    font-family: 'Poppins', sans-serif !important;
    font-size: 12px;
    color: var(--muted-text);
    text-align: center;
    margin-top: 25px;
    font-weight: 400 !important;
}

.terms-text a {
    color: var(--primary-gold) !important;
    font-weight: 500;
    text-decoration: none !important;
    transition: 0.3s;
}

.terms-text a:hover {
    color: var(--dark-text) !important;
}

/* =========================================
   5. LOGGED IN STATE MENU (Dashboard Look)
========================================= */
.proforweb-user-header h3 {
    font-family: 'Playfair Display', serif !important;
    font-size: 26px;
    color: var(--dark-text);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-gold);
}

.proforweb-offcanvas-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.proforweb-offcanvas-menu li {
    margin-bottom: 10px !important;
}

.proforweb-offcanvas-menu li a {
    display: block;
    padding: 15px 20px;
    font-family: 'Poppins', sans-serif !important;
    font-size: 15px;
    color: var(--dark-text);
    text-decoration: none !important;
    background: #f9f9f9;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid transparent;
}

/* Menu Hover Effects */
.proforweb-offcanvas-menu li a:hover {
    background: #fff;
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transform: translateX(5px);
}

/* Logout Button Styling */
.proforweb-offcanvas-menu li a.logout-link {
    background: #fff5f5;
    color: #dc2626 !important;
}

.proforweb-offcanvas-menu li a.logout-link:hover {
    border-color: #dc2626;
    color: #dc2626 !important;
}

/* =========================================
   6. TIMER & RESEND OTP BUTTON
========================================= */
.resend-otp-container {
    margin-top: 20px;
    text-align: center;
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px;
}

.timer-text {
    color: var(--muted-text);
}

#proforweb-timer {
    font-weight: 600;
    color: var(--primary-gold);
}

.resend-otp-btn {
    color: var(--primary-gold) !important;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.resend-otp-btn:hover {
    color: var(--dark-text) !important;
}

/* =========================================
   7. UI REFINEMENTS (Gap & Resend Button)
========================================= */
/* Reduced gap between input box and button */
.proforweb-login-card .phone-input-group {
    margin-bottom: 20px !important;
}

/* Premium full-width design for Resend button */
.resend-otp-btn {
    width: 100% !important;
    /* Matched with verify button */
    padding: 12px 24px !important;
    /* Padding increased to maintain height */
    background: rgba(202, 146, 54, 0.08) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    border: 1px solid var(--primary-gold) !important;
    border-radius: 8px !important;
    /* Rounded like the input above */
    color: var(--primary-gold) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    /* Font size slightly increased */
    text-transform: uppercase !important;
    /* Text capitalized */
    letter-spacing: 1px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    margin-top: 15px !important;
    text-align: center !important;
    /* Text centered */
    box-sizing: border-box !important;
}

.resend-otp-btn:hover {
    background: var(--primary-gold) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(202, 146, 54, 0.25) !important;
    transform: translateY(-2px) !important;
}

/* =========================================
   8. MOBILE RESPONSIVENESS
========================================= */
@media (max-width: 480px) {
    .phone-input-group {
        height: 44px !important;
    }
    .country-code {
        flex: 0 0 65px !important;
        max-width: 65px !important;
        width: 65px !important;
        padding: 0 4px 0 8px !important;
        font-size: 13px !important;
    }
    .phone-input-group input {
        font-size: 13px !important;
        padding: 0 8px !important;
    }
}