/* register.css */

/* Center the content */
.content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 3.5rem);
    padding: 20px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #a8c0ff, #3ab7bf);
}

/* Form styling */
form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    font-family: Arial, 'Nunito Sans', sans-serif;
}

/* Form elements */
h2 {
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select {
    width: 100%;
    padding: 10px;
    margin: 4px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: Arial, 'Nunito Sans', sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #f9f9f9;
}

@media (max-width: 456px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    select {
        font-size: 11px;
        margin: 2px 0;
    }
}

@media (max-width: 396px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    select {
        font-size: 10px;
        margin: 2px 0;
    }
}

@media (max-width: 350px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    select {
        font-size: 8px;
    }
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.phone-container {
    display: flex;
    gap: 5px;
    margin: 5px 0;
}

.phone-code-field {
    width: 120px;
    background-color: #f9f9f9;
    color: #333;
    cursor: not-allowed;
}

.phone-number-field {
    flex-grow: 1;
}

.username-referral-container {
    display: flex;
    gap: 10px;
    margin: 5px 0;
}

.username-field,
.referral-field {
    width: 50%;
    font-size: 14px;
}

.password-container {
    position: relative;
    margin: 5px 0;
}

.password-field,
.confirm-password-field {
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
    font-size: 18px;
    color: #007bff;
}

form button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #0056b3;
}

p {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

a:not(.logo) {
    color: #007bff;
    text-decoration: none;
}

a:not(.logo):hover {
    text-decoration: underline;
}

.error-message {
    color: red;
    text-align: center;
    font-size: 14px;
    margin: 5px 0;
}