/* Registration page — themed form layout */

.register-main {
    padding: 24px 0 70px;
    background: #ffffff;
}

.register-layout {
    display: flex;
    justify-content: center;
}

.register-card {
    width: 100%;
    max-width: 720px;
    padding: 32px 28px 28px;
    background: #fff;
}

.register-required-hint {
    margin: 0 0 22px;
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #667085;
}

.register-form fieldset {
    margin: 0 0 28px;
    padding: 0;
    border: none;
}

.register-form legend {
    display: block;
    width: 100%;
    margin: 0 0 16px;
    padding: 0 0 10px;
    border-bottom: 2px solid rgba(0, 91, 154, 0.12);
    font-family: 'Cairo', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #005B9A;
}

.register-form .fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
}

.register-form .fields > div {
    min-width: 0;
}

.register-form .fields .affiliation,
.register-form .fields .country,
.register-form .fields .email,
.register-form .reviewer_interests,
.register-form .reviewer_nocontext_interests,
.register-form .optin {
    grid-column: 1 / -1;
}

.register-form label {
    display: block;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.register-form .label,
.register-form label > .label {
    display: block;
    margin-bottom: 8px;
}

.register-form .required {
    color: #d92d20;
}

.register-form input[type="text"],
.register-form input[type="email"],
.register-form input[type="password"],
.register-form select {
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    padding: 13px 14px;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    color: #222;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.register-form select {
    appearance: auto;
    cursor: pointer;
}

.register-form input:focus,
.register-form select:focus {
    outline: none;
    border-color: #005B9A;
    box-shadow: 0 0 0 3px rgba(0, 91, 154, 0.12);
}

.register-form .consent,
.register-form .reviewer {
    margin-top: 8px;
    padding: 18px 16px;
    background: #f7f8fa;
    border-radius: 10px;
}

.register-form .consent .fields,
.register-form .reviewer .fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.register-form .optin label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 500;
    color: #44505a;
    line-height: 1.7;
    cursor: pointer;
}

.register-form .optin input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: #005B9A;
}

.register-form .optin a {
    color: #005B9A;
    font-weight: 700;
    text-decoration: none;
}

.register-form .optin a:hover {
    text-decoration: underline;
}

.register-form .reviewer_interests {
    max-height: none !important;
    padding-bottom: 0 !important;
    overflow: visible !important;
    opacity: 1 !important;
}

.register-form .reviewer_interests .label {
    margin-bottom: 8px;
}

.register-form #formErrors {
    margin: 0 0 18px;
    padding: 12px 14px;
    background: #fdeeee;
    color: #b42318;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
}

.register-form #formErrors a {
    color: #b42318;
}

.register-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
    margin-top: 8px;
}

.register-actions .login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto;
    min-width: 180px;
    min-height: 48px;
    flex: 1 1 auto;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    background: #005B9A;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.register-actions .login-submit:hover {
    background: #003D6B;
    box-shadow: 0 8px 18px rgba(0, 91, 154, 0.28);
}

.register-login-link {
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #005B9A;
    text-decoration: none;
}

.register-login-link:hover {
    color: #003D6B;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .register-card {
        padding: 24px 8px 16px;
    }

    .register-form .fields {
        grid-template-columns: 1fr;
    }

    .register-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .register-actions .login-submit {
        width: 100%;
    }

    .register-login-link {
        text-align: center;
    }
}
