/* GL's Simple Registration & Login Styles */
.gl-form-wrapper {
    max-width: 450px;
    margin: 40px auto;
    padding: 30px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: Arial, Helvetica, sans-serif; /* Simple, readable font */
    font-size: 18px; /* Larger base font size */
    line-height: 1.8;
}

.gl-form-wrapper h1,
.gl-form-wrapper h2 {
    text-align: center;
    color: #333;
    font-size: 28px; /* Larger headings */
    margin-bottom: 25px;
}
.gl-form-wrapper h1 a {
    text-decoration: none;
    color: #333;
}

.gl-form-logo {
    text-align: center;
    margin-bottom: 20px;
}
.gl-form-logo img {
    max-width: 200px;
    height: auto;
}


.gl-form .form-row {
    margin-bottom: 20px;
}

.gl-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #444;
    font-size: 20px; /* Larger labels */
}

.gl-form label .required {
    color: #e00;
}
.gl-form label.inline {
    display: inline-block;
    font-weight: normal;
    font-size: 18px; /* Slightly smaller for inline */
    margin-left: 5px;
}


.gl-form .input-text,
.gl-form input[type="text"],
.gl-form input[type="email"],
.gl-form input[type="password"] {
    width: 100%;
    padding: 15px; /* More padding */
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 18px; /* Larger input text */
    line-height: 1.5;
}
.gl-form input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    transform: scale(1.5); /* Make checkbox bigger */
    vertical-align: middle;
}


.gl-form .button {
    background-color: #0073aa; /* WordPress blue */
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 20px; /* Larger button text */
    width: 100%;
    transition: background-color 0.3s ease;
}

.gl-form .button:hover {
    background-color: #005a87;
}

.gl-form-links {
    margin-top: 25px;
    text-align: center;
    font-size: 17px; /* Slightly smaller links */
}
.gl-form-links a {
    color: #0073aa;
    text-decoration: none;
}
.gl-form-links a:hover {
    text-decoration: underline;
}

/* Messages */
.gl-message {
    padding: 15px 20px;
    margin: 20px auto; /* Centered if it's the only element */
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 18px;
    max-width: 90%; /* Or specific width */
    box-sizing: border-box;
}
/* Style for messages displayed at the top of the page via wp_body_open */
body > .gl-message {
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    margin-bottom: 10px;
    max-width: 800px; /* Adjust as needed */
}


.gl-message-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.gl-message-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}
.gl-message-error a { /* For lost password link in error */
    color: #721c24;
    font-weight: bold;
    text-decoration: underline;
}

.gl-message-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.gl-message-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}


/* Language Selector */
.gl-language-selector {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.gl-language-selector p {
    display: none;
}

.gl-language-selector ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 2px solid #0073aa;
    border-radius: 5px;
    background: white;
    display: none;
    position: absolute;
    width: 100%;
    z-index: 1;
}

.gl-language-selector:hover ul {
    display: block;
}

.gl-language-selector .selected-language {
    padding: 10px 15px;
    background: #0073aa;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.gl-language-selector ul li {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.gl-language-selector ul li:last-child {
    border-bottom: none;
}

.gl-language-selector ul li a {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
}

.gl-language-selector ul li a:hover {
    color: #0073aa;
}

.gl-language-selector .gl-lang-flag {
    width: 24px;
    height: auto;
    margin-right: 10px;
    border: 1px solid #eee;
}

/* Small screen adjustments */
@media (max-width: 600px) {
    .gl-form-wrapper {
        margin: 20px 10px;
        padding: 20px;
        font-size: 16px;
    }
    .gl-form-wrapper h1,
    .gl-form-wrapper h2 {
        font-size: 24px;
    }
    .gl-form label {
        font-size: 18px;
    }
    .gl-form .input-text,
    .gl-form input[type="text"],
    .gl-form input[type="email"],
    .gl-form input[type="password"] {
        padding: 12px;
        font-size: 16px;
    }
    .gl-form .button {
        padding: 12px 20px;
        font-size: 18px;
    }
    .gl-form-links {
        font-size: 15px;
    }
    body > .gl-message { /* For global messages */
        max-width: 100%;
        margin-left: 10px;
        margin-right: 10px;
    }
}
