/* Content Restrictor Plugin Styles */
:root {
    --primary-color: #4F46E5;
    --primary-hover: #4338CA;
    --text-color: #111827;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
    --error-color: #EF4444;
    --success-color: #10B981;
    --bg-color: #F9FAFB;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.2s ease-in-out;
    --border-radius: 0.375rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 0.75rem;
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Auth Wrapper */
.cr-auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background-color: var(--white);
}

.cr-auth-container {
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
}

.cr-auth-logo {
    text-align: center;
    margin-bottom: 2.5rem;
}

.cr-auth-logo img {
    height: 2.5rem;
    width: auto;
}

.cr-auth-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    max-width: 400px;
    margin: 0 auto;
}

#cr_modal_actions{
    display: flex;
    background-color: #182740;
}

.cr-auth-box h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem;
    text-align: center;
    line-height: 1.25;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.cr-auth-subtitle {
    color: #6b7280;
    text-align: center;
    margin: 0.5rem 0 2rem;
    font-size: 1rem;
    line-height: 1.5;
}

.cr-password-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cr-forgot-password {
    color: #4f46e5;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cr-forgot-password:hover {
    color: #4338ca;
    text-decoration: underline;
}

.cr-auth-alt-actions {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9375rem;
    color: #6b7280;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.cr-auth-link {
    color: #4f46e5;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cr-auth-link:hover {
    color: #4338ca;
    text-decoration: underline;
}

/* Form Elements */
.cr-form-group {
    margin-bottom: 1.5rem;
}

.cr-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
    font-size: 0.9375rem;
}

.cr-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.cr-form-control {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    height: 44px;
    background-color: #f9fafb;
    color: #111827;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.cr-form-control:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    background-color: #fff;
}

.cr-form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* Buttons */
.cr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    height: 2.75rem;
}

.cr-btn-primary {
    color: white;
    background-color: #4f46e5;
    border: none;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    height: 44px;
    width: 100%;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    letter-spacing: 0.01em;
}

.cr-btn-primary:hover {
    background-color: #4338ca;
    transform: translateY(-1px);
}

.cr-btn-primary:active {
    transform: translateY(0);
}

.cr-btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
}

.cr-btn-primary:active {
    transform: translateY(0);
}

.cr-btn-block {
    display: flex;
    width: 100%;
}

.cr-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* Links */
.cr-links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
}

.cr-links a {
    color: var(--primary-color);
    text-decoration: none;
}

.cr-code-resend a:hover {
    text-decoration: underline;
}

/* Modal error message styles */
.cr-modal-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 14px;
    text-align: center;
}

/* Error Messages */
.cr-error {
    background-color: #fff5f5;
    color: var(--error-color);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1.25rem;
    border-left: 4px solid var(--error-color);
}

/* Success Messages */
.cr-success {
    background-color: #f0fff4;
    color: var(--success-color);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1.25rem;
    border-left: 4px solid var(--success-color);
}

/* Responsive Styles */
@media (max-width: 640px) {
    .cr-auth-wrapper {
        padding: 1rem;
        align-items: flex-start;
    }
    
    .cr-auth-box {
        padding: 1.5rem;
        border: none;
        box-shadow: none;
    }
    
    .cr-auth-container {
        max-width: 100%;
    }
    
    .cr-auth-logo {
        margin-bottom: 2rem;
    }
    
    .cr-auth-box h2 {
        font-size: 1.25rem;
    }
    
    .cr-auth-subtitle {
        font-size: 0.9375rem;
    }
}

/* Teaser Styles */
.cr-teaser {
    font-size: 16px;
    line-height: 1.6;
    margin: 16px 0;
    color: #333;
}

.cr-teaser-cta {
    margin-top: 12px;
}

.cr-btn-open-modal {
    display: inline-block;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.cr-btn-open-modal {
    background: #0d6efd;
    color: #fff;
    font-weight: 600;
}

.cr-link {
    color: #0d6efd;
    text-decoration: underline;
}

.cr-inline-links {
    display: inline-block;
    margin-left: 10px;
    color: #555;
}
@media (max-width: 768px) {
    #login_button {
        padding: 10px 0px !important;
    }
    #signup_button {
        padding: 10px 0px !important;
    }
}
.cr-teaser{font-size:16px;line-height:1.6;margin:16px 0;color:#333;}
.cr-teaser-cta{margin-top:12px}
.cr-btn-open-modal{display:inline-block;padding:2px 16px;border:none;border-radius:6px;cursor:pointer;}
.cr-btn-open-modal{background:#2c3c54;color:#fff;font-weight:600}
.cr-link{color:#0d6efd;text-decoration:underline}
.cr-inline-links{display:inline-block;margin-left:10px;color:#555}

/* Modal */
.cr-modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.55);display:none;z-index:9998}
.cr-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;z-index:9999}
.cr-modal.show,.cr-modal-overlay.show{display:flex}
.cr-modal-card{background:#1d3b53;color:#fff;max-width:480px;width:90%;border-radius:12px;
               box-shadow:0 10px 30px rgba(0,0,0,.3);padding:32px 28px;text-align:center;position:relative}
.cr-close{position:absolute;top:12px;right:16px;background:transparent;border:none;font-size:26px;cursor:pointer;color:#fff}
.cr-lock-icon{font-size:50px;margin-bottom:16px}
.cr-modal-title{font-size:22px;margin-bottom:6px;font-weight:700}
.cr-modal-sub{font-size:14px;margin-bottom:24px;color:#dce6ef}

.cr-form-style{margin:10px 0 20px}
.cr-input{background:#163042;border-radius:6px;padding:10px 12px;margin:10px 0;
          text-align:left;font-size:14px;color:#aabacb;display:flex;align-items:center}
.cr-input i{margin-right:8px;font-style:normal;opacity:0.8}

.cr-actions{display:flex;justify-content:center;gap:12px;margin:18px 0}
.cr-btn{padding:10px 18px;border-radius:6px;font-weight:600;cursor:pointer;text-decoration:none;transition:background .2s}
.cr-btn-login{background:#fff;color:#1d3b53}
.cr-btn-login:hover{background:#f1f1f1}
.cr-btn-signup{background:#f9b233;color:#fff}
.cr-btn-signup:hover{background:#e69d15}

.cr-terms{font-size:12px;margin:12px 0;display:block;color:#dce6ef}
.cr-terms a{color:#f9b233;text-decoration:underline}
.cr-footnote{font-size:11px;color:#aabacb;margin-top:6px}

/* Password Match Indicator */
.cr-password-match-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: #f0fff4;
    border: 1px solid #10b981;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #065f46;
    animation: slideDown 0.3s ease-out;
}

.cr-match-icon {
    color: #10b981;
    font-weight: bold;
    font-size: 1rem;
}

.cr-match-text {
    font-weight: 500;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Error Message */
.cr-form-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: #fef2f2;
    border: 1px solid #ef4444;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #dc2626;
    animation: slideDown 0.3s ease-out;
}

.cr-error-icon {
    color: #ef4444;
    font-weight: bold;
    font-size: 1rem;
}

.cr-error-text {
    font-weight: 500;
}

/* Verification Modal Styles */
.cr-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cr-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cr-modal-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95) translateY(20px);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.cr-modal-overlay.show .cr-modal-container {
    transform: scale(1) translateY(0);
}

.cr-modal-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid #f3f4f6;
}

.cr-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cr-modal-header p {
    color: #6b7280;
    font-size: 0.9375rem;
    margin: 0;
    line-height: 1.5;
}

.cr-modal-body {
    padding: 2rem;
}

.cr-code-input-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.cr-code-input {
    width: 3rem;
    height: 3rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    background-color: #f9fafb;
    transition: all 0.2s ease;
    outline: none;
}

.cr-code-input:focus {
    border-color: #4f46e5;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.cr-code-input.filled {
    border-color: #10b981;
    background-color: #f0fff4;
    color: #065f46;
}

.cr-code-info {
    text-align: center;
    margin-bottom: 1rem;
}

.cr-code-info p {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

.cr-modal-footer {
    padding: 1rem 2rem 2rem;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.cr-btn-secondary {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9375rem;
}

.cr-btn-secondary:hover {
    background-color: #e5e7eb;
    border-color: #9ca3af;
}

.cr-btn-primary.cr-modal-btn {
    padding: 0.625rem 1.25rem;
    width: auto;
    height: auto;
    font-size: 0.9375rem;
    border-radius: 8px;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .cr-modal-container {
        width: 95%;
        margin: 1rem;
    }
    
    .cr-modal-header,
    .cr-modal-body {
        padding: 1.5rem;
    }
    
    .cr-modal-footer {
        padding: 1rem 1.5rem 1.5rem;
        flex-direction: column;
    }
    
    .cr-code-input-container {
        gap: 0.75rem;
    }
    
    .cr-code-input {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.125rem;
    }
}
