/**
 * Common Login Modal Styles
 * Matches the SoftwareHope Auth Layout Design
 */

/* Modal Overlay */
.sm-login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
    /* CRITICAL: Force centered layout */
    flex-direction: column !important;
    /* CRITICAL: Isolate from Astra theme container padding */
    padding-left: 20px !important;
    padding-right: 20px !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal Container */
.sm-login-modal-container {
    max-width: 950px !important;
    width: calc(100% - 40px) !important;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    overflow: auto;
    animation: slideUp 0.3s ease;
    position: relative;
    /* CRITICAL: Override Astra theme aggressive CSS */
    margin: 0 auto !important;
    flex-basis: auto !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    /* Mobile scroll optimization */
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Left Panel - Dark with Social Login */
.sm-review-modal-left,
.sm-review-modal-left.sh-auth-left {
    width: 40%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    position: relative;
    overflow-y: auto;
}

.sm-review-modal-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.sm-review-brand-content,
.sm-review-brand-content.sh-brand-content {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sm-review-logo,
.sm-review-logo.sh-login-logo {
    max-width: 120px;
    max-height: 80px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto 25px auto;
    object-fit: contain;
}

.sm-review-heading,
.sm-review-heading.sh-login-heading {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.3;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.sm-review-tagline,
.sm-review-tagline.sh-tagline {
    font-size: 14px;
    color: #e0e0e0;
    margin: 0 0 25px 0;
    line-height: 1.5;
    font-weight: 400;
}

/* Social Login Buttons on Left Panel */
.sh-left-social-login {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.sh-left-social-login .sh-social-btn {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    line-height: 1.2;
}

.sh-left-social-login .sh-social-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateX(4px);
}

.sh-left-social-login .sh-social-btn:active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(2px);
}

.sh-left-social-login .sh-social-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Mobile Social Login (Right Panel) */
.sm-mobile-social-login {
    display: none;
    margin-bottom: 16px;
    gap: 12px;
}

.sm-mobile-social-login .sh-social-btn {
    width: 100%;
    padding: 12px 14px;
    min-height: 48px;
    background: #ffffff;
    color: #111827;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    line-height: 1.2;
    box-shadow: 0 0 0 rgba(0,0,0,0);
}

.sm-mobile-social-login .sh-social-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: currentColor;
}

.sm-mobile-social-login .btn-linkedin-left {
    border-color: #0077b5;
    color: #0077b5;
}
.sm-mobile-social-login .btn-linkedin-left:hover {
    border-color: #0077b5;
}

.sm-mobile-social-login .btn-google-left {
    border-color: #ea4335;
    color: #ea4335;
}
.sm-mobile-social-login .btn-google-left:hover {
    border-color: #ea4335;
}

.sm-mobile-social-login .btn-facebook-left {
    border-color: #1877f2;
    color: #1877f2;
}
.sm-mobile-social-login .btn-facebook-left:hover {
    border-color: #1877f2;
}

.sm-mobile-social-login .btn-github-left {
    border-color: #333333;
    color: #333333;
}
.sm-mobile-social-login .btn-github-left:hover {
    border-color: #333333;
}

/* Strong overrides to beat left-panel button styles */
.sm-review-modal .sm-mobile-social-login .btn-linkedin-left,
.sm-review-modal .sm-mobile-social-login .btn-google-left,
.sm-review-modal .sm-mobile-social-login .btn-facebook-left,
.sm-review-modal .sm-mobile-social-login .btn-github-left {
    background: #ffffff !important;
    color: #111827 !important;
    border-color: #e5e7eb !important;
}

.sm-review-modal .sm-mobile-social-login .btn-linkedin-left:hover,
.sm-review-modal .sm-mobile-social-login .btn-google-left:hover,
.sm-review-modal .sm-mobile-social-login .btn-facebook-left:hover,
.sm-review-modal .sm-mobile-social-login .btn-github-left:hover {
    background: #f9fafb !important;
    border-color: #d1d5db !important;
    color: #111827 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Right Panel - White with Login Form */
.sm-review-modal-right,
.sm-review-modal-right.sh-auth-right {
    width: 60%;
    padding: 30px 35px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login Required Container - Acts as Right Panel */
.sm-login-required.sh-auth-right {
    width: 100%;
    padding: 30px 40px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 90vh;
}

/* Modal Header */
.sm-login-required .modal-header.sm-login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.sm-login-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sm-site-icon {
    flex-shrink: 0;
}

.sm-site-icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
}

.sm-brand-info-section {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sm-brand-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
}

.sm-review-subheading {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sm-login-header-right {
    flex-shrink: 0;
}

.sm-login-close-btn,
.sm-login-close-btn-inline {
    font-size: 32px;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.sm-login-close-btn:hover,
.sm-login-close-btn-inline:hover {
    color: #1a1a1a;
    background: #f3f4f6;
}

/* Login Content */
.sm-login-content.sm-login-content-inline {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Form Header */
.sm-login-content .sh-form-header {
    margin-bottom: 20px;
    text-align: center;
}

.sh-welcome-heading.sm-login-heading-inline {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.sm-login-paragraph-inline {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

/* Social Login Buttons */
.sh-left-social-login.sm-social-login-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.sm-social-login-buttons .sh-social-btn {
    flex: 1;
    min-width: 140px;
    max-width: 200px;
    padding: 10px 16px;
    background: #ffffff;
    color: #1a1a1a;
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.2;
}

.sm-social-login-buttons .sh-social-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sm-social-login-buttons .sh-social-btn:active {
    transform: translateY(0);
}

.sm-social-login-buttons .sh-social-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* LinkedIn Button */
.sm-social-login-buttons .btn-linkedin-left {
    border-color: #0077b5;
    color: #0077b5;
}

.sm-social-login-buttons .btn-linkedin-left:hover {
    background: #0077b5;
    color: white;
}

/* Google Button */
.sm-social-login-buttons .btn-google-left {
    border-color: #ea4335;
    color: #ea4335;
}

.sm-social-login-buttons .btn-google-left:hover {
    background: #ea4335;
    color: white;
}

/* Facebook Button */
.sm-social-login-buttons .btn-facebook-left {
    border-color: #1877f2;
    color: #1877f2;
}

.sm-social-login-buttons .btn-facebook-left:hover {
    background: #1877f2;
    color: white;
}

/* GitHub Button */
.sm-social-login-buttons .btn-github-left {
    border-color: #333;
    color: #333;
}

.sm-social-login-buttons .btn-github-left:hover {
    background: #333;
    color: white;
}

/* Divider */
.sm-social-login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 500;
}

.sm-social-login-divider::before,
.sm-social-login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.sm-social-login-divider span {
    padding: 0 15px;
}

/* Login Form */
.sm-login-form.sh-form {
    width: 100%;
    max-width: 100%;
}

/* Form Groups - Inherit from auth-layout.css */
.sm-login-form .sh-form-group {
    margin-bottom: 16px;
}

.sm-login-form .sh-form-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sm-login-form .sh-form-control {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    background: #ffffff;
    transition: all 0.3s ease;
    color: #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.sm-login-form .sh-form-control::placeholder {
    color: #9ca3af;
    font-size: 14px;
}

.sm-login-form .sh-form-control:hover {
    border-color: #d1d5db;
}

.sm-login-form .sh-form-control:focus {
    outline: none;
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.sm-login-form .sh-form-control.error {
    border-color: #dc2626;
    background-color: #fef2f2;
}

/* Password Wrapper */
.sm-login-form .sh-password-wrapper {
    position: relative;
}

.sm-login-form .sh-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.sm-login-form .sh-password-toggle:hover {
    color: #0066ff;
    background: rgba(0, 102, 255, 0.05);
}

.sm-login-form .sh-password-toggle svg {
    width: 20px;
    height: 20px;
}

/* Form Row */
.sm-login-form .sh-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sm-login-form .sh-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
}

.sm-login-form .sh-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #0066ff;
}

.sm-login-form .sh-forgot-link {
    font-size: 13px;
    color: #0066ff;
    text-decoration: none;
    font-weight: 600;
}

.sm-login-form .sh-forgot-link:hover {
    color: #0052cc;
    text-decoration: underline;
}

/* Submit Button */
.sm-login-form .sh-btn-primary {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #0066ff 0%, #004cc4 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.sm-login-form .sh-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #0052cc 0%, #003d99 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

.sm-login-form .sh-btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.sm-login-form .sh-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sm-login-form .sh-btn-primary.loading {
    pointer-events: none;
}

.sm-login-form .sh-btn-text {
    display: inline-block;
}

.sm-login-form .sh-btn-loader {
    display: none;
    position: absolute;
}

.sm-login-form .sh-btn-primary.loading .sh-btn-text {
    opacity: 0;
}

.sm-login-form .sh-btn-primary.loading .sh-btn-loader {
    display: inline-block;
}

/* Spinner */
.sm-login-form .sh-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Messages */
.sm-login-form .sh-form-messages {
    margin-bottom: 16px;
}

.sm-login-form .sh-message {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.sm-login-form .sh-message-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.sm-login-form .sh-message-error::before {
    content: "⚠️";
    font-size: 18px;
}

.sm-login-form .sh-message-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #86efac;
}

.sm-login-form .sh-message-success::before {
    content: "✓";
    font-size: 18px;
    font-weight: bold;
}

/* Footer */
.sm-login-content .sh-auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.sm-login-content .sh-auth-footer p,
.sm-login-content .sm-register-link {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.sm-login-content .sh-auth-footer a {
    color: #0066ff;
    text-decoration: none;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.2s ease;
}

.sm-login-content .sh-auth-footer a:hover {
    background: rgba(0, 102, 255, 0.08);
    color: #0052cc;
}

/* OTP Styles */
.sm-login-form .sh-otp-group input[name="otp_code"] {
    text-align: center;
    letter-spacing: 10px;
    font-size: 24px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    padding: 16px;
}

.sm-login-form .sh-otp-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.sm-login-form .sh-link-btn {
    background: none;
    border: none;
    color: #0066ff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.sm-login-form .sh-link-btn:hover {
    color: #0052cc;
    background: rgba(0, 102, 255, 0.05);
}

.sm-login-form .sh-link-btn.disabled {
    color: #9ca3af;
    cursor: not-allowed;
}

.sm-login-form .sh-field-note {
    font-size: 12px;
    color: #6b7280;
    margin: 6px 0 0 0;
}

.sm-login-form .sh-field-error {
    font-size: 12px;
    color: #dc2626;
    margin: 6px 0 0 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sm-login-form .sh-field-error::before {
    content: "⚠";
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .sm-review-modal .sm-mobile-social-login {
        display: flex !important;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 15px;
        visibility: visible !important;
        opacity: 1 !important;
    }
    .sm-login-modal-overlay {
        padding: 15px;
        align-items: flex-start;
        padding-top: 40px;
    }
    
    .sm-login-modal-container {
        flex-direction: column;
        width: 95%;
        max-width: 400px;
        max-height: 90vh;
        margin: 0 auto;
        border-radius: 12px;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* HIDE LEFT PANEL ON MOBILE - Focus on form only */
    .sm-review-modal-left,
    .sm-review-modal-left.sh-auth-left,
    .sm-review-modal.active .sm-review-modal-left,
    .sm-review-modal.active .sm-review-modal-left.sh-auth-left,
    .sm-review-modal.active .sm-login-modal-container > .sm-review-modal-left,
    .sm-review-modal.active .sm-login-modal-container > .sm-review-modal-left.sh-auth-left {
        display: none !important;
    }
    
    /* FULL WIDTH FORM PANEL */
    .sm-review-modal-right,
    .sm-review-modal-right.sh-auth-right,
    .sm-review-modal.active .sm-review-modal-right,
    .sm-review-modal.active .sm-review-modal-right.sh-auth-right,
    .sm-review-modal.active .sm-login-modal-container > .sm-review-modal-right,
    .sm-review-modal.active .sm-login-modal-container > .sm-review-modal-right.sh-auth-right {
        width: 100% !important;
        padding: 20px !important;
        max-height: none;
    }
    
    /* CLOSE BUTTON OPTIMIZATION */
    .sm-login-close-btn,
    .sm-login-close-btn-inline {
        position: fixed !important;
        top: 20px !important;
        right: 20px !important;
        width: 44px !important;
        height: 44px !important;
        font-size: 32px !important;
        background: rgba(0, 0, 0, 0.7) !important;
        color: white !important;
        border-radius: 50% !important;
        z-index: 1000 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .sm-login-close-btn:hover,
    .sm-login-close-btn-inline:hover {
        background: rgba(0, 0, 0, 0.9) !important;
        transform: scale(1.1);
    }
    
    /* FORM HEADER OPTIMIZATION */
    .sh-form-header {
        margin-bottom: 25px;
        text-align: center;
    }
    
    .sh-welcome-heading {
        font-size: 22px !important;
        margin-bottom: 8px !important;
    }
    
    .sh-form-header p {
        font-size: 14px;
        color: #6b7280;
    }
    
    /* TOUCH-FRIENDLY FORM ELEMENTS */
    .sm-login-form .sh-form-control {
        min-height: 48px;
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 16px;
        border-radius: 8px;
    }
    
    .sm-login-form .sh-form-group {
        margin-bottom: 20px;
    }
    
    .sm-login-form .sh-form-group label {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    /* TOUCH-FRIENDLY BUTTONS */
    .sm-login-form .sh-btn-primary {
        min-height: 52px;
        font-size: 16px;
        font-weight: 600;
        border-radius: 8px;
        margin-top: 10px;
    }
    
    /* PASSWORD TOGGLE OPTIMIZATION */
    .sm-login-form .sh-password-toggle {
        width: 44px;
        height: 44px;
        right: 4px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    /* FORM ROW OPTIMIZATION */
    .sm-login-form .sh-form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 25px;
    }
    
    .sm-login-form .sh-checkbox-label {
        font-size: 14px;
    }
    
    .sm-login-form .sh-forgot-link {
        font-size: 14px;
        padding: 8px 0;
    }
    
    .sm-mobile-social-login {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 15px;
    }
    
    /* SOCIAL LOGIN DIVIDER */
    .sm-social-login-divider {
        margin: 25px 0;
    }
    
    /* FOOTER OPTIMIZATION */
    .sh-auth-footer {
        margin-top: 25px;
        padding-top: 20px;
    }
    
    .sm-register-link {
        font-size: 14px;
    }
    
    .sm-register-link a {
        padding: 6px 12px;
        font-weight: 600;
    }
    
    .sm-login-required.sh-auth-right {
        padding: 25px 20px;
    }
    
    /* Extra small devices (phones in landscape) */
    @media (max-height: 500px) {
        .sm-login-modal-container {
            max-height: 98vh;
            overflow-y: auto;
        }
        
        .sm-review-modal-right,
        .sm-review-modal-right.sh-auth-right {
            padding: 25px 20px 20px;
        }
        
        .sh-form-header {
            margin-bottom: 20px;
        }
        
        .sm-login-form .sh-form-group {
            margin-bottom: 15px;
        }
        
        .sm-login-form .sh-btn-primary {
            min-height: 48px;
            margin-top: 5px;
        }
    }
}

@media (max-width: 480px) {
    .sm-login-modal-overlay {
        padding: 10px;
        padding-top: 30px;
    }
    
    .sm-login-modal-container {
        max-width: 100vw;
        border-radius: 16px 16px 0 0;
        max-height: 92vh;
    }
    
    .sm-review-modal-right,
    .sm-review-modal-right.sh-auth-right {
        padding: 30px 20px 25px;
    }
    
    .sm-login-close-btn,
    .sm-login-close-btn-inline {
        top: 15px !important;
        right: 15px !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 28px !important;
    }
    
    .sh-welcome-heading {
        font-size: 20px !important;
    }
    
    .sh-form-header p {
        font-size: 13px;
    }
    
    .sm-login-form .sh-form-control {
        min-height: 46px;
        font-size: 15px;
        padding: 13px 15px;
    }
    
    .sm-login-form .sh-btn-primary {
        min-height: 50px;
        font-size: 15px;
    }
    
    .sm-login-form .sh-form-group {
        margin-bottom: 18px;
    }
    
    .sm-social-login-divider {
        margin: 22px 0;
    }
    
    .sh-auth-footer {
        margin-top: 22px;
        padding-top: 18px;
    }
    
    .sm-login-required.sh-auth-right {
        padding: 22px 18px;
    }
}

/* Accessibility */
.sm-login-modal-container *:focus-visible {
    outline: 2px solid #0066ff;
    outline-offset: 2px;
}

/* Prevent body scroll when modal is open */
body.sm-modal-open {
    overflow: hidden;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .sm-login-modal-overlay {
        padding: 10px !important;
        align-items: flex-start !important;
        padding-top: 50px !important;
        justify-content: center !important;
    }

    .sm-login-modal-container {
        max-width: 100% !important;
        width: 100% !important;
        max-height: calc(100vh - 60px) !important;
        border-radius: 12px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        flex-direction: column !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
    }

    .sm-review-modal-left {
        display: none !important;
    }

    .sm-review-modal-right {
        width: 100% !important;
        padding: 30px 20px 20px 20px !important;
        border-radius: 12px 12px 0 0 !important;
    }

    .sm-login-close-btn,
    .sm-review-modal .sm-login-close-btn {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        font-size: 24px !important;
        top: 15px !important;
        right: 15px !important;
    }
}

@media (max-width: 480px) {
    .sm-login-modal-container {
        border-radius: 16px 16px 0 0 !important;
    }

    .sm-review-modal-right {
        padding: 25px 16px 16px 16px !important;
    }
}
