body.login-action-register #registerform input[type="radio"] {
    width: auto !important; /* veya width: auto; ancak !important ile override'ı garantiye alırsınız */
    display: inline-block;
    margin-right: 5px;
}


.role-options {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    align-items: center;
    flex: 1 1 auto;
}
body.login-action-register .role-options {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    align-items: center;
}
.role-option {
    display: inline-flex;
    align-items: center;
    width: auto;
    white-space: nowrap;
}

input[type="radio"] {
    display: inline-block;
    width: auto; /* Formun genişliği kadar uzamasını engeller */
    margin-right: 5px; /* Yanyana dururken biraz boşluk bırakarak düzenli görünüm */
}

.login .button-primary {
    float: center !important;
}

/* Form label ve input styles */
.register-label {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}
/* Role başlığı hemen üstünde, radio butonlara çok yakın */
body.login-action-register .role-selection .register-label {
    margin-bottom: 2px;
}
body.login-action-register .role-selection .role-options {
    margin-top: 0;
    padding-top: 0;
}

.wevoi-signup-container {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    text-align: center;
    margin: 10px;
}

.wevoi-signup-title {
    font-weight: bold;
    font-size: 28px;
    margin-bottom: 10px;
}

#loginform,
#registerform,
#lostpasswordform,
.login label,
.login input,
.login select,
.button {
    font-family: 'Raleway', sans-serif !important;
}

#loginform,
#lostpasswordform {
    border-radius: 8px !important;
}

.login form .input {
    border-radius: 6px !important;
}

.wp-core-ui .button {
    border-radius: 6px !important;
}

/* Form Element Styles */
#wevoi_age_category {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    padding: 10px;
    font-size: 14px;
    color: #333;
}

.italic-option {
    font-style: italic;
    color: green;
}

#birth_date {
    height: 30px;
    font-size: 14px;
    padding: 2px;
    box-sizing: border-box;
}

#reg_passmail {
    font-size: 16px;
    color: green;
    font-weight: bold;
    text-align: center;
}

.wp-core-ui select {
    max-width: 45rem !important;
}

/* Default width for login forms */
#login {
    width: 320px !important;
}

/* Register Form Specific Styles */
body.login-action-register #login {
    width: 600px !important;
}

body.login-action-register #loginform,
body.login-action-register #registerform {
    max-width: 600px !important;
    width: 100% !important;
    box-sizing: border-box;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* Form Layout - flex so Username/Email and First/Last Name can sit side by side */
body.login-action-register #registerform {
    display: flex;
    flex-wrap: wrap;
    gap: 0 2%;
}

body.login-action-register #registerform .form-row {
    display: flex;
    width: 100%;
}

body.login-action-register #registerform p {
    box-sizing: border-box;
}

/* Username and Email side by side (WordPress core first two p elements) */
body.login-action-register #registerform > p:nth-of-type(1),
body.login-action-register #registerform > p:nth-of-type(2) {
    flex: 0 0 49%;
    max-width: 49%;
}

body.login-action-register #registerform p.full-width,
body.login-action-register #registerform > .full-width,
body.login-action-register #registerform > div.full-width {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
}
/* Radyo butonları ile isim/soyisim satırı arası belirgin boşluk */
body.login-action-register #registerform p.full-width.role-selection {
    margin-bottom: 24px;
}
body.login-action-register #registerform > .signup-name-row {
    margin-top: 20px;
}

/* First Name and Last Name side by side - sadece isim/soyisim satırı biraz içerden */
body.login-action-register .signup-name-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0 2%;
    width: 100%;
    flex: 0 0 100%;
    margin-bottom: 10px;
    box-sizing: border-box;
}
body.login-action-register .signup-name-row .signup-row-half {
    flex: 1 1 48%;
    min-width: 0;
    max-width: 48%;
    box-sizing: border-box;
}

/* Fallback when not inside .signup-name-row (e.g. direct in form) */
body.login-action-register #registerform p.signup-row-half {
    flex: 0 0 49%;
    max-width: 49%;
}

/* Form Elements Styling */
body.login-action-register #registerform label {
    font-weight: bold;
    display: block;
    margin-top: 5px;
    line-height: 1.35;
    color: #004aaa;
    font-size: 16px;
}

body.login-action-register #registerform input,
body.login-action-register #registerform select {
    width: 100%;
    padding: 10px;
    margin-bottom: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 14px;
}

body.login-action-register #registerform input:focus,
body.login-action-register #registerform select:focus {
    border-color: #0073aa;
    outline: none;
}

/* Button Styling - ortada */
body.login-action-register #registerform p.submit {
    text-align: center;
}
body.login-action-register #registerform .button {
    display: inline-block;
    width: fit-content;
    margin: 20px auto;
    margin-left: auto;
    margin-right: auto;
    padding: 12px 30px;
    background-color: #0073aa;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
    border: none;
    font-weight: 600;
}

body.login-action-register #registerform .button:hover {
    background-color: #005a87;
}

/* Special Containers */
body.login-action-register #student-fields {
    display: none;
    box-sizing: border-box;
    width: 100%;
    padding: 0 10px 6px 10px;
    margin: 8px 0 15px 0;
    background-color: #f5f5f5;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}
body.login-action-register #student-fields input,
body.login-action-register #student-fields select {
    padding: 6px 10px;
}
body.login-action-register #student-fields p,
body.login-action-register #student-fields .signup-name-row {
    margin-bottom: 0;
}

body.login-action-register #new-school-container {
    display: none;
    padding: 15px;
    margin-top: 5px;
    background-color: #f5f5f5;
    border-radius: 8px;
}

/* Message Styling */
body.login-action-register #login_error,
body.login-action-register .message {
    margin-left: 0;
    margin-right: 0;
    max-width: 600px;
    width: 100%;
    box-sizing: border-box;
    border-left-color: #dc3232;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Form Validation Styles */
body.login-action-register #registerform input.error,
body.login-action-register #registerform select.error {
    border-color: #dc3232;
    background-color: #fef7f7;
}

body.login-action-register #registerform label.error {
    color: #dc3232;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Additional Form Element Styles */
body.login-action-register #registerform input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

body.login-action-register #registerform select option {
    padding: 10px;
}

body.login-action-register #registerform select option:first-child {
    color: #757575;
}

/* Custom Spacing and Margins */
body.login-action-register #registerform p {
    margin-bottom: 20px;
}

body.login-action-register #registerform .input {
    margin-top: 2px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    body.login-action-register #login {
        width: 90% !important;
        padding: 10px 0;
    }
    
    /* Stack Username/Email and First/Last Name on small screens */
    body.login-action-register #registerform > p:nth-of-type(1),
    body.login-action-register #registerform > p:nth-of-type(2),
    body.login-action-register #registerform p.signup-row-half {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    body.login-action-register .signup-name-row {
        flex-direction: column;
        gap: 0;
    }
    body.login-action-register .signup-name-row .signup-row-half {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    body.login-action-register #registerform p {
        flex: 0 0 100%;
        padding: 0;
        margin-bottom: 15px;
    }
    
    body.login-action-register #student-fields p {
        flex: 0 0 100%;
        padding: 0;
    }
    
    body.login-action-register #registerform {
        padding: 15px;
    }

    body.login-action-register #registerform .button {
        width: 100%;
        margin: 15px 0;
    }
}

@media screen and (max-width: 375px) {
    body.login-action-register #login {
        width: 100% !important;
        padding: 10px 5px;
    }
    
    body.login-action-register #registerform {
        padding: 10px 8px;
        margin: 0;
        border-radius: 0;
    }
    
    body.login-action-register #registerform input,
    body.login-action-register #registerform select {
        min-height: 44px;
        font-size: 14px;
        padding: 8px;
        width: 95%;
        margin: 0 auto;
        display: block;
    }

    body.login-action-register #registerform label {
        font-size: 14px;
        padding: 0 10px;
    }

    /* Button'ın mobile'da daha kolay tıklanabilir olması için */
    body.login-action-register #registerform .button {
        width: 100%;
        padding: 15px 20px;
        margin: 10px 0;
        font-size: 16px;
    }

    /* Form elementleri arası boşlukları azalt */
    body.login-action-register #registerform p {
        margin-bottom: 10px;
    }

    body.login-action-register #student-fields {
        padding: 10px 5px;
        margin: 10px 0;
    }
}

/* Error Message Styling */
.login #login_error {
    border-left-color: #dc3232;
    background-color: #fcf0f0;
    color: #dc3232;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

/* Success Message Styling */
.login .message {
    border-left-color: #46b450;
    background-color: #f0f8f0;
    color: #46b450;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

/* Focus States */
body.login-action-register #registerform input:focus,
body.login-action-register #registerform select:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
    outline: 2px solid transparent;
}

/* Placeholder Styling */
body.login-action-register #registerform input::placeholder {
    color: #757575;
    opacity: 0.7;
}

/* Custom Scrollbar for Select Elements */
body.login-action-register #registerform select {
    scrollbar-width: thin;
    scrollbar-color: #0073aa #f0f0f0;
}

body.login-action-register #registerform select::-webkit-scrollbar {
    width: 8px;
}

body.login-action-register #registerform select::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

body.login-action-register #registerform select::-webkit-scrollbar-thumb {
    background-color: #0073aa;
    border-radius: 4px;
    border: 2px solid #f0f0f0;
}