/* User Register Page - Fully Scoped with .user-register prefix */

/* Reset any conflicting global styles */
.user-register__main * {
    box-sizing: border-box;
}

.user-register__main {
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    margin: 0 !important;
    margin-top: 80px !important;
}

.user-register__container {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 450px;
    width: 100%;
}

.user-register__card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 50px 40px;
    width: 100%;
}

.user-register__header {
    text-align: center;
    margin-bottom: 40px;
}

.user-register__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 14px;
    color: white;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.user-register__title {
    font-size: 2em;
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.user-register__subtitle {
    color: #7f8c8d;
    margin: 0;
    font-size: 1em;
}

.user-register__form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 30px;
}

.user-register__form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.user-register__form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.user-register__label {
    font-size: 0.95em;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-register__input {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95em;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
    color: #2c3e50;
}

.user-register__input::placeholder {
    color: #bdc3c7;
}

.user-register__input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: #fafbff;
}

.user-register__input:invalid {
    border-color: #e74c3c;
}

.user-register__input:invalid:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.user-register__help-text {
    font-size: 0.85em;
    color: #95a5a6;
    margin-top: 2px;
}

.user-register__password-strength {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 20px;
    padding-left: 4px;
}

.user-register__strength-bar {
    width: 100%;
    height: 6px;
    background: #ecf0f1;
    border-radius: 3px;
    overflow: hidden;
}

.user-register__strength-fill {
    height: 100%;
    width: 0;
    background: #ddd;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.user-register__strength-text {
    font-size: 0.85em;
    color: #7f8c8d;
    font-weight: 500;
}

.user-register__terms {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    margin-top: 10px;
}

.user-register__checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
    margin-top: 2px;
    flex-shrink: 0;
}

.user-register__checkbox-label {
    font-size: 0.9em;
    color: #2c3e50;
    cursor: pointer;
    line-height: 1.4;
}

.user-register__checkbox-label a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.user-register__checkbox-label a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.user-register__btn {
    padding: 13px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    width: 100%;
    max-width: 370px;
    margin: 0 auto;
}

.user-register__btn--primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-top: 10px;
}

.user-register__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.user-register__btn--primary:active {
    transform: translateY(0);
}

.user-register__btn--primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.user-register__btn--google {
    background: white;
    color: #2c3e50;
    border: 2px solid #e0e0e0;
}

.user-register__btn--google:hover {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
}

.user-register__google-icon {
    width: 18px;
    height: 18px;
}

.user-register__divider {
    position: relative;
    text-align: center;
    margin: 30px 0;
}

.user-register__divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.user-register__divider span {
    position: relative;
    background: white;
    padding: 0 12px;
    color: #bdc3c7;
    font-size: 0.9em;
    font-weight: 500;
}

.user-register__footer {
    text-align: center;
    margin-top: 25px;
}

.user-register__footer p {
    color: #7f8c8d;
    font-size: 0.95em;
    margin: 0;
}

.user-register__link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.user-register__link:hover {
    color: #764ba2;
}

.user-register__side-visual {
    display: none;
}

.user-register__visual-content {
    color: white;
}

.user-register__visual-content h2 {
    font-size: 2.2em;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.user-register__visual-content p {
    font-size: 1.1em;
    margin: 0 0 30px 0;
    opacity: 0.95;
}

.user-register__features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-register__features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1em;
}

.user-register__features i {
    font-size: 1.3em;
    min-width: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .user-register__container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .user-register__side-visual {
        display: none;
    }

    .user-register__main {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .user-register__main {
        padding: 15px;
    }

    .user-register__card {
        padding: 35px 25px;
    }

    .user-register__form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .user-register__icon {
        width: 60px;
        height: 60px;
        font-size: 2em;
    }

    .user-register__title {
        font-size: 1.6em;
    }

    .user-register__form {
        gap: 14px;
    }

    .user-register__input,
    .user-register__btn {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 14px;
    }
}

@media (max-width: 480px) {
    .user-register__container {
        max-width: 100%;
    }

    .user-register__card {
        padding: 25px 18px;
    }

    .user-register__form-row {
        grid-template-columns: 1fr;
    }

    .user-register__icon {
        width: 50px;
        height: 50px;
        font-size: 1.8em;
    }

    .user-register__title {
        font-size: 1.4em;
    }

    .user-register__subtitle {
        font-size: 0.9em;
    }

    .user-register__form {
        gap: 12px;
    }

    .user-register__form-row {
        grid-template-columns: 1fr;
    }

    .user-register__input,
    .user-register__btn {
        font-size: 16px;
        padding: 11px 12px;
    }

    .user-register__label {
        font-size: 0.9em;
    }

    .user-register__terms {
        padding: 12px;
        font-size: 0.9em;
    }

    .user-register__checkbox {
        width: 16px;
        height: 16px;
    }
}

/* Fix autofill styling */
.user-register__input:-webkit-autofill,
.user-register__input:-webkit-autofill:hover,
.user-register__input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
    box-shadow: 0 0 0 1000px white inset !important;
}

.user-register__input:-webkit-autofill {
    -webkit-text-fill-color: #2c3e50 !important;
}
/* Professional Phone Input Styling */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.phone-input-wrapper:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.phone-country-select {
    padding: 10px 6px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: #667eea;
    cursor: pointer;
    min-width: 65px;
    max-width: 75px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 12 8'%3E%3Cpath fill='%23667eea' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 22px;
}

.phone-country-select:focus {
    outline: none;
}

.phone-country-select option {
    background: white;
    color: #2c3e50;
    padding: 10px;
}

.phone-country-code {
    font-weight: 600;
    color: #667eea;
    min-width: 35px;
    text-align: center;
    font-size: 13px;
    border-right: 1px solid #e1e8ed;
    padding: 0 6px;
}

.phone-input {
    flex: 1;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    background: transparent;
}

.phone-input:focus {
    outline: none;
}

.phone-input::placeholder {
    color: #95a5a6;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .phone-country-select {
        min-width: 60px;
        max-width: 70px;
        font-size: 12px;
        padding-right: 20px;
    }

    .phone-country-code {
        min-width: 32px;
        font-size: 12px;
        padding: 0 4px;
    }

    .phone-input {
        font-size: 13px;
    }
}