/**
 * Customer Registration Styles
 * 
 * @version 1.0.0
 */

#cx-customer-reg-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cx-reg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.cx-reg-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Tab Styles */
.cx-reg-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    border-bottom: 2px solid #e0e0e0;
}

.cx-tab-button {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.cx-tab-button:hover {
    color: #333;
    background: #f5f5f5;
}

.cx-tab-button.active {
    color: #0073aa;
    border-bottom-color: #0073aa;
}

.cx-tab-content {
    display: none;
}

.cx-tab-content.active {
    display: block;
}

/* PIN Input Styles */
.cx-pin-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.cx-pin-input-wrapper input {
    width: 100%;
    padding-right: 48px;
    font-size: 24px;
    text-align: center;
    letter-spacing: 8px;
    font-family: monospace;
}

.cx-password-toggle {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.cx-password-toggle:hover {
    background-color: #f0f0f0;
}

.cx-password-toggle:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.cx-eye-icon, .cx-eye-slash-icon {
    font-size: 18px;
    line-height: 1;
}

.cx-reg-field .description {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.cx-forgot-pin {
    text-align: center;
    margin-top: 16px;
}

.cx-forgot-pin a {
    color: #0073aa;
    text-decoration: none;
    font-size: 14px;
}

.cx-forgot-pin a:hover {
    text-decoration: underline;
}

.cx-back-to-login {
    background: #f0f0f0;
    color: #333;
    margin-left: 10px;
}

.cx-back-to-login:hover {
    background: #e0e0e0;
}

.cx-reg-modal-content h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
}

.cx-reg-modal-content > p {
    margin: 0 0 24px 0;
    color: #666;
    font-size: 15px;
}

#cx-customer-reg-form {
    margin-top: 24px;
}

.cx-reg-field {
    margin-bottom: 20px;
}

.cx-reg-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.cx-reg-field label .required {
    color: #e74c3c;
    margin-left: 2px;
}

.cx-reg-field input[type="text"],
.cx-reg-field input[type="email"],
.cx-reg-field input[type="tel"],
.cx-reg-field input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.cx-reg-field input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.cx-password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.cx-password-input-wrapper input {
    width: 100%;
    padding-right: 48px;
}

.cx-password-toggle {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.cx-password-toggle:hover {
    background-color: #f0f0f0;
}

.cx-password-toggle:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.cx-eye-icon, .cx-eye-slash-icon {
    font-size: 18px;
    line-height: 1;
}

.cx-reg-actions {
    margin-top: 28px;
}

.cx-reg-submit {
    width: 100%;
    padding: 14px 24px;
    background: #007cba;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.cx-reg-submit:hover {
    background: #005a87;
}

.cx-reg-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.cx-reg-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}

.cx-reg-message.error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.cx-reg-message.success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.cx-reg-message.info {
    background: #eef;
    color: #33c;
    border: 1px solid #ccf;
}

/* Responsive */
@media (max-width: 600px) {
    .cx-reg-modal-content {
        padding: 24px;
        width: 95%;
    }
    
    .cx-reg-modal-content h2 {
        font-size: 24px;
    }
}
