/* Register Page Styles */
.register-page {
    background-color: #F2F2F2;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.register-container {
    width: 100%;
    max-width: 820px;
}

.register-box {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 50px 60px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Register Title with Gradient */
.register-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 29.65px;
    line-height: 36px;
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(270deg, #294AFF 0%, #1FD3FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Person Type Selector */
.person-type-selector {
    display: flex;
    justify-content: left;
    gap: 40px;
    margin-bottom: 30px;
}

.radio-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 28px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #333;
}

.radio-container input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: #FBFBFB;
    border: 2px solid #CCCCCC;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.radio-container:hover .radio-checkmark {
    border-color: #294AFF;
}

.radio-container input:checked ~ .radio-checkmark {
    border-color: #294AFF;
    background-color: #294AFF;
}

.radio-checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.radio-container input:checked ~ .radio-checkmark:after {
    display: block;
}

.radio-label {
    font-weight: 500;
    user-select: none;
    color: #9A9A9A;
}

/* Form Styles */
.register-form {
    width: 100%;
}

.form-fields {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 24px;
    width: 100%;
}

.form-group.half {
    flex: 1;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 13.15px;
    line-height: 16px;
    color: #9A9A9A;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.form-control {
    width: 100%;
    height: 50px;
    padding: 0 20px;
    background: #FBFBFB;
    border: 1px solid #CCCCCC;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
}

select.form-control {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%239A9A9A" height="12" viewBox="0 0 24 24" width="12" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.form-control:focus {
    outline: none;
    border-color: #294AFF;
    background-color: #FFFFFF;
}

.form-control::placeholder {
    color: transparent;
}

/* Input Icons for Password Fields */
.password-fields .input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 19px;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.password-fields .form-control {
    padding-left: 45px;
}

.password-fields .form-control:focus + .input-icon,
.password-fields .form-control:not(:placeholder-shown) + .input-icon {
    opacity: 0;
}

.password-fields .form-control:placeholder-shown:not(:focus) + .input-icon {
    opacity: 1;
}

/* Register Button */
.btn-register {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background: linear-gradient(270deg, #294AFF 0%, #1FD3FF 100%);
    border: none;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 18px;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 32px;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(41, 74, 255, 0.3);
}

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

.btn-register:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Register Footer */
.register-footer {
    text-align: center;
    margin-top: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #666;
}

.login-link {
    color: #294AFF;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.login-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Messages */
.woocommerce-error,
.woocommerce-message {
    border-radius: 6px;
    padding: 12px 20px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.woocommerce-error {
    background: #FFE6E6;
    border: 1px solid #FF4444;
    color: #CC0000;
}

.woocommerce-message {
    background: #E6FFE6;
    border: 1px solid #44FF44;
    color: #008800;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 5px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
}

.password-strength.weak {
    color: #FF4444;
}

.password-strength.medium {
    color: #FFA500;
}

.password-strength.strong {
    color: #44FF44;
}

/* Responsive Design */
@media (max-width: 768px) {
    .register-box {
        padding: 30px 20px;
    }
    
    .register-title {
        font-size: 24px;
        line-height: 30px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group.half {
        margin-bottom: 24px;
    }
    
    .form-row:last-child .form-group.half:last-child {
        margin-bottom: 0;
    }
    
    .person-type-selector {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        padding-left: 20px;
    }
}

@media (max-width: 480px) {
    .register-page {
        padding: 20px 15px;
    }
    
    .register-box {
        padding: 25px 15px;
    }
    
    .register-title {
        font-size: 22px;
        margin-bottom: 25px;
    }
}