.auth-page-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
    background-color: #fcfcfc;
    font-family: 'Almarai', 'Inter', sans-serif;
}

.auth-page-title {
    color: #137976;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Almarai', sans-serif;
}

.auth-container {
    background-color: #ffffff;
    width: 100%;
    max-width: 510px;
    padding: 50px 30px;
    border: none;
   
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.auth-welcome {
    text-align: right;
    font-weight: 00;
    color: #222;
    font-size: 23px;
    margin-top: 0;
}

.auth-form .form-group {
    margin-bottom: 25px;
}

.auth-form label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #333;
    font-weight: 700;
}

.auth-form .form-group > label {
    display: none;
}

/* Input Styles */
.auth-form .form-control {
    width: 100%;
    padding: 18px 25px;
    font-size: 14px;
    border: none;
    border-radius: 50px;
    background-color: #F5F5F5;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
    box-sizing: border-box;
    color: #333;
    height: 39px;
}

.auth-form .form-control:focus {
    outline: none;
    background-color: #EFEFEF;
    box-shadow: none;
}

.auth-form .form-control::placeholder {
    color: #999;
    text-align: right;
}

.auth-form .is-invalid {
    border-color: #e3342f;
}

.auth-form .error-message {
    display: block;
    color: #e3342f;
    font-size: 13px;
    margin-top: 5px;
    padding-right: 15px;
}

/* Select specifically */
.auth-form select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A84C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 15px center; /* RTL support */
    background-size: 16px;
    color: #aaa;
}
.auth-form select.form-control:focus, .auth-form select.form-control:valid {
    color: #333;
}

/* Phone Layout */
.phone-group-row {
    display: flex;
    gap: 15px;
}

.phone-group-row .phone-number {
    flex: 2;
}
.phone-group-row .phone-code {
    flex: 1;
}

/* Password wrapper for eye icon */
.password-wrapper {
    position: relative;
}

.password-wrapper .toggle-password {
    display: none;
}

/* Button */
.btn-submit {
        display: block;
    width: 100%;
    margin: 40px auto 0;
    padding: 13px;
    background-color: #A78438;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    height: 42px;
}

.btn-submit:hover {
    background-color: rgb(57, 121, 118);
}

.btn-submit:active {
    transform: scale(0.98);
}

.auth-links {
    margin-top: 30px;
    text-align: center;
    font-size:15px;
    color: #666; 
}

.auth-links .register-link {
    color: #137976;
    font-weight: 700;
    text-decoration: none;
    margin-right: 5px;
}

.auth-links .register-link:hover {
    text-decoration: underline;
}

/* Adjustments for login layout */
.auth-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 15px;
    padding: 0 10px;
}
.auth-actions .remember-me {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 0;
    color: #444;
}

/* Circular Checkbox */
.auth-actions .remember-me input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background-color: #F5F5F5;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease;
}

.auth-actions .remember-me input[type="checkbox"]:checked {
    background-color: #137976;
}

.auth-actions .remember-me input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    background-color: transparent;
    border-radius: 0;
}

.auth-actions .forgot-password {
    color: #222;
    text-decoration: none;
}
.auth-actions .forgot-password:hover {
    text-decoration: none;
}

@media (max-width: 600px) {
    .auth-container {
        padding: 30px 20px;
    }
    .phone-group-row {
        flex-direction: column;
    }
}
