/* Shared login card: cooperation, providers, mentors and WordPress. */
body .hdd-login-card,
body .hdd-account-registration-fields .custom-register-form,
body.login #loginform {
    box-sizing: border-box;
    width: 100%;
    max-width: 560px;
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid #dce3eb;
    border-top: 4px solid #003063;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 28px rgb(0 48 99 / 8%);
    color: #003063;
    margin-inline: auto;
}
body .ddhh-auth-container .ddhh-login-section { flex: 1; min-width: 0; }
body .ddhh-auth-container { display: flex; align-items: start; gap: 32px; }
body .ddhh-auth-container .ddhh-register-section {
    box-sizing: border-box;
    min-width: 0;
    flex: 1;
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid #dce3eb;
    border-radius: 16px;
    background: #f4f6f9;
}
body .hdd-login-card h2 { margin: 0 0 12px; font-size: var(--hdd-text-card-title, clamp(1.5rem, 1.3125rem + 0.75vw, 1.875rem)); line-height: 1.3; }
body .hdd-login-card form { margin: 24px 0 0; }
body :is(.hdd-login-card, #loginform, .hdd-account-registration-fields .custom-register-form) p { margin: 0 0 20px; }
body :is(.hdd-login-card, #loginform, .hdd-account-registration-fields .custom-register-form) label { font-size: var(--hdd-text-small, 1rem); font-weight: 500; line-height: 1.4; }
body :is(.hdd-login-card, #loginform, .hdd-account-registration-fields .custom-register-form) input:is([type="text"], [type="email"], [type="password"]) {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: none;
    min-height: 52px;
    margin: 6px 0 0;
    padding: 12px 14px;
    border: 1px solid #8294aa;
    border-radius: 10px;
    background: #fff;
    color: #003063;
    font: inherit;
    font-size: var(--hdd-text-control, 1.125rem);
}
body :is(.hdd-login-card, #loginform, .hdd-account-registration-fields .custom-register-form) input[type="checkbox"] { width: 20px; height: 20px; margin: 0 10px 0 0; vertical-align: middle; }
body :is(.hdd-login-card, #loginform, .hdd-account-registration-fields .custom-register-form) :is(.login-remember, .field_rememberme) label { font-weight: 400; }
body :is(.hdd-login-card, #loginform, .hdd-account-registration-fields .custom-register-form) input[type="submit"] {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    min-height: 52px;
    padding: 12px 24px;
    border: 1px solid #003063;
    border-radius: 999px;
    background: #003063;
    color: #fff;
    font: inherit;
    font-size: var(--hdd-text-control, 1.125rem);
    font-weight: 600;
    cursor: pointer;
}
body :is(.hdd-login-card, #loginform, .hdd-account-registration-fields .custom-register-form) input[type="submit"]:hover { background: #f47420; color: #003063; border-color: #f47420; }
body :is(.hdd-login-card, #loginform, .hdd-account-registration-fields .custom-register-form) :is(input, button, a):focus-visible { outline: 3px solid #b45309; outline-offset: 3px; }
body .hdd-login-card > p:last-child { margin-bottom: 0; }
body.login #login { width: min(480px, calc(100% - 40px)); }
body.login #loginform { margin-left: 0; }
body.login #loginform .forgetmenot { float: none; margin-bottom: 20px; }
body.login #loginform .submit { margin: 0; }
@media (max-width: 767px) {
    body .ddhh-auth-container { flex-direction: column; }
    body .ddhh-auth-container > :is(.ddhh-register-section, .ddhh-login-section) { width: 100%; max-width: none; }
}

/* Registration uses the shared field rhythm; keep the honeypot collapsed. */
body .hdd-account-registration-fields .custom-register-form .form-field {
    gap: 6px;
    margin: 0 0 20px;
}
body .hdd-account-registration-fields .custom-register-form .form-field input { margin: 0; }
body :is(.hdd-login-card, #loginform, .hdd-account-registration-fields .custom-register-form) :is(.field_mail_address, .form-submit) { margin: 0; }

/* Password recovery is supporting text, like checkbox labels. */
body .login-lost-password a,
body.login #nav a[href*="lostpassword"] {
    font-size: var(--hdd-text-small, 1rem);
    font-weight: 400;
    line-height: 1.4;
}

body :is(.hdd-login-card, #loginform, .hdd-account-registration-fields .custom-register-form) > .login-lost-password { margin-top: 16px; }

/* An authenticated status is a full-width content block, not a narrow login form. */
body .hdd-login-card.hdd-login-status { max-width: none; }
body .hdd-login-status .hdd-login-status-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 24px;
    border: 1px solid #003063;
    border-radius: 999px;
    background: #003063;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
}
body .hdd-login-status .hdd-login-status-button:is(:hover, :focus-visible) {
    border-color: #f47420;
    background: #f47420;
    color: #003063;
}
