.crf-bg {
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px !important;
    background: #ffffff !important;
    margin: 0 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}
.crf-card {
    width: min(760px, 95vw) !important;
    background: #fff !important;
    border-radius: 14px !important;
    box-shadow: 0 22px 48px rgba(0,0,0,.16) !important;
    overflow: hidden !important;
    margin: 0 !important;
}
.crf-header {
    background: #1f5e54 !important;
    color: #fff !important;
    padding: 18px 24px !important;
    text-align: center !important;
    margin: 0 !important;
}
.crf-header h2 {
    margin: 0 !important;
    font-size: 20px !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
}
.crf-form {
    padding: 24px !important;
    background: #fff !important;
}
.crf-form h3 {
    color: #2d3748 !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin: 30px 0 20px 0 !important;
    padding: 0 0 10px 0 !important;
    border-bottom: 2px solid #e2e8f0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}
.crf-row {
    display: flex !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
    margin-bottom: 20px !important;
}
.crf-col { 
    flex: 1 1 0 !important; 
    min-width: 220px !important; 
}
.crf-field { 
    margin-bottom: 14px !important; 
}
.crf-field label {
    display: block !important;
    margin-bottom: 6px !important;
    font-weight: 600 !important;
    color: #222 !important;
    font-size: 14px !important;
}
.crf-form input[type="text"],
.crf-form input[type="email"],
.crf-form input[type="password"],
.crf-form input[type="tel"],
.crf-form input[type="search"],
.crf-form select,
.crf-form textarea {
    width: 100% !important;
    background: #f1f3f5 !important;
    border: 1px solid #dfe3e6 !important;
    border-radius: 8px !important;
    padding: 12px 14px !important;
    font-size: 15px !important;
    transition: border .2s, box-shadow .2s, background .2s !important;
    outline: none !important;
    box-sizing: border-box !important;
}
.crf-form select { 
    appearance: none !important; 
    background-image: linear-gradient(45deg, transparent 50%, #1f5e54 50%), linear-gradient(135deg, #1f5e54 50%, transparent 50%) !important; 
    background-position: calc(100% - 18px) calc(50% + 3px), calc(100% - 12px) calc(50% + 3px) !important; 
    background-size: 6px 6px !important; 
    background-repeat: no-repeat !important; 
}
.crf-form input:focus,
.crf-form select:focus,
.crf-form textarea:focus {
    border-color: #90EE90 !important;
    box-shadow: 0 0 0 3px rgba(144, 238, 144, 0.15) !important;
    background: #fff !important;
}
.crf-user-type {
    background: #f8f9fa !important;
    padding: 20px !important;
    border-radius: 12px !important;
    margin: 20px 0 !important;
    border: 2px solid #e2e8f0 !important;
}
.crf-user-type h3 {
    margin-top: 0 !important;
    color:rgb(3, 1, 12) !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
    border: none !important;
    padding: 0 !important;
}
.crf-phone-label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.crf-reseller-fields {
    background: #fffaf0 !important;
    padding: 20px !important;
    border-radius: 12px !important;
    /* margin-top: 16px !important; */
    border: 2px solid #1f5e54 !important;
}
.crf-reseller-fields h3 {
    margin-top: 0 !important;
    color: #1f5e54 !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
    border: none !important;
    padding: 0 !important;
}
.crf-btn {
    display: inline-block !important;
    background: #1f5e54 !important;
    color: #fff !important;
    border: 0 !important;
    padding: 12px 28px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: transform .06s ease, box-shadow .2s ease, background .2s ease !important;
    box-shadow: 0 8px 18px rgba(31, 94, 84, 0.25) !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}
.crf-btn:hover { 
    background: #1a4f47 !important; 
    transform: translateY(-1px) !important;
}
.crf-error {
    background: #fff3f3 !important;
    border-left: 4px solid #e03131 !important;
    padding: 10px 12px !important;
    border-radius: 6px !important;
    margin-bottom: 16px !important;
    color: #c53030 !important;
    font-weight: 600 !important;
    display: none ;
}
.crf-success {
    background: #e6ffed !important;
    border-left: 4px solid #2e7d32 !important;
    padding: 10px 12px !important;
    border-radius: 6px !important;
    margin-bottom: 16px !important;
    color: #2f855a !important;
    font-weight: 600 !important;
    display: none ;
}
.crf-loading {
    display: none ;
    text-align: center !important;
    padding: 40px 20px !important;
    background: #f8f9fa !important;
    border-radius: 12px !important;
    margin: 20px 0 !important;
}
.crf-spinner {
    border: 4px solid #e2e8f0 !important;
    border-top: 4px solid #6a11cb !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    animation: crf-spin 1s linear infinite !important;
    margin: 0 auto 16px auto !important;
}
@keyframes crf-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@media (max-width: 560px) {
    .crf-form { padding: 18px !important; }
    .crf-header { padding: 16px 18px !important; }
    .crf-row { flex-direction: column !important; gap: 0 !important; }
}
/* Password container and toggle button - INSIDE input field */
.crf-password-container {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}
.crf-password-container input {
    padding-right: 45px !important;
    flex: 1 !important;
}
.crf-toggle-password {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    color: #666 !important;
    transition: color 0.2s !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
}
.crf-toggle-password:hover {
    color: #1f5e54 !important;
}
.crf-toggle-password:focus {
    outline: none !important;
    color: #1f5e54 !important;
}
.crf-eye-icon {
    width: 16px !important;
    height: 16px !important;
    stroke: currentColor !important;
    transition: all 0.2s ease !important;
}
/* Ensure input focus doesn't interfere with button */
.crf-password-container input:focus {
    padding-right: 45px !important;
}
/* Password requirements styling - Initially hidden */
.crf-password-requirements {
    margin-top: 8px !important;
    padding: 12px !important;
    background: #f8f9fa !important;
    border-radius: 6px !important;
    border: 1px solid #e9ecef !important;
    display: none ; /* Initially hidden */
}
.crf-requirement {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 4px !important;
    font-size: 13px !important;
    color: #666 !important;
}
.crf-requirement:last-child {
    margin-bottom: 0 !important;
}
.crf-check {
    margin-right: 8px !important;
    font-size: 12px !important;
}
.crf-requirement.valid .crf-check {
    color: #28a745 !important;
}
.crf-requirement.valid {
    color: #28a745 !important;
}
/* Password match indicator - Initially hidden */
.crf-password-match {
    margin-top: 8px !important;
    padding: 8px 12px !important;
    background: #f8f9fa !important;
    border-radius: 6px !important;
    border: 1px solid #e9ecef !important;
    display: none ; /* Initially hidden */
    align-items: center !important;
    font-size: 13px !important;
    color: #666 !important;
}
.crf-password-match.valid {
    background: #d4edda !important;
    border-color: #c3e6cb !important;
    color: #155724 !important;
}
.crf-password-match.valid .crf-check {
    color: #28a745 !important;
}

.crf-login-link {
    margin: 10px 0 0 0;
    font-size: 14px;
    color: #fff;
    text-align: center;
}

.crf-login-btn {
    color: #1f5e54;
    text-decoration: none;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.crf-login-btn:hover {
    background-color: #0d8509;
    color: white;
    text-decoration: none;
}






/* Switch container */
.crf-field .crf-switch-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 12px;
    user-select: none;
    margin: 0 !important;
}

/* Esconde o checkbox */
.crf-switch-input {
    display: none;
}

/* Slider visual do switch */
.crf-switch-slider {
    display: inline-block;
    position: relative;
    width: 55px;
    height: 26px;
    background: #ccc;
    border-radius: 16px;
    transition: background 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* Círculo do switch */
.crf-switch-slider::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

/* Estado ativo (checked) */
.crf-switch-input:checked + .crf-switch-slider {
    background: #13bf11;
}

.crf-switch-input:checked + .crf-switch-slider::before {
    transform: translateX(28px);
}

/* Texto ao lado do switch */
.crf-switch-text {
    font-weight: 500;
    color: #333;
    font-size: 16px;
    margin-left: 8px;
}

.crf-reseller-toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    /* margin-bottom: 18px; */
}

#crf-submit-btn {
    display: inline-block;
    margin: 0 auto;
}
.crf-form p {
    text-align: center !important;
    margin-top: 24px !important;
}