/* Register Page Styles */

/* Register Overlay */
.register-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.register-overlay.active {
    display: flex;
}

/* Register Background with Products */
.register-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/01/01.png');
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    z-index: -1;
}

/* Register Modal */
.register-modal {
    position: relative;
    width: 560px;
    background-color: #ffffff;
    border-radius: 0;
    padding: 60px 80px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    max-height: 90vh;
    overflow-y: auto;
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #333;
}

/* Modal Title */
.modal-title {
    font-size: 36px;
    font-weight: 600;
    text-align: center;
    color: #000000;
    margin-bottom: 40px;
}

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

/* Form Group */
.form-group {
    margin-bottom: 25px;
}

/* Form Input */
.form-input {
    width: 100%;
    height: 60px;
    padding: 15px 20px;
    border: 2px solid #c0c0c0;
    border-radius: 0;
    font-size: 16px;
    color: #000000;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-input::placeholder {
    color: #c0c0c0;
}

.form-input:focus {
    border-color: #ff1493;
}

/* Phone Input Wrapper */
.phone-input-wrapper {
    position: relative;
    display: flex;
    width: 100%;
}

.phone-prefix {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1;
}

.flag-icon {
    width: 28px;
    height: auto;
    border-radius: 2px;
}

.country-code {
    font-size: 16px;
    color: #000000;
    font-weight: 500;
}

.dropdown-arrow-small {
    font-size: 10px;
    color: #666;
}

.phone-input {
    padding-left: 100px;
}

/* Checkbox Group */
.checkbox-group {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.form-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-custom {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #c0c0c0;
    border-radius: 2px;
    position: relative;
    transition: all 0.3s ease;
    margin-top: 2px;
}

.form-checkbox:checked ~ .checkbox-custom {
    background-color: #ff1493;
    border-color: #ff1493;
}

.form-checkbox:checked ~ .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
}

.privacy-link {
    color: #ff1493;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: #e0127f;
}

/* Submit Button */
.register-submit-btn {
    width: 100%;
    height: 60px;
    background-color: #ff1493;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    margin-bottom: 20px;
}

.register-submit-btn:hover {
    background-color: #e0127f;
}

/* Form Links */
.form-links {
    text-align: center;
}

.form-text {
    font-size: 16px;
    color: #666666;
}

.form-link {
    font-size: 16px;
    color: #666666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-link:hover {
    color: #e0127f;
}

/* Responsive Design */
@media (max-width: 768px) {
    .register-modal {
        width: 90%;
        padding: 40px 30px;
    }

    .modal-title {
        font-size: 28px;
    }

    .form-input {
        height: 50px;
        font-size: 14px;
    }

    .register-submit-btn {
        height: 50px;
        font-size: 18px;
    }

    .phone-input {
        padding-left: 90px;
    }

    .phone-prefix {
        left: 15px;
        gap: 6px;
    }

    .flag-icon {
        width: 24px;
    }
}

@media (max-width: 480px) {
    .register-modal {
        padding: 30px 20px;
    }

    .modal-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .form-input {
        height: 45px;
        font-size: 14px;
    }

    .checkbox-text {
        font-size: 12px;
    }

    .checkbox-custom {
        width: 18px;
        height: 18px;
    }
}
