/* ===========================================================
 * OPUS MUNDI — Login & Registration CSS
 * Styles the authentication portal, ORCID integration cards,
 * and standard OJS forms with glassmorphism and glow effects.
 * =========================================================== */

.om-page-login,
.om-page-register {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 60px 20px;
}

/* ── HERO SECTION ────────────────────────────────────────────────── */
.om-login-hero,
.om-register-header {
    text-align: center;
    margin-bottom: 48px;
    max-width: 600px;
}

.om-login-title,
.om-register-title {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 12px;
}

[data-theme="light"] .om-login-title,
[data-theme="light"] .om-register-title {
    color: #0d1f2d;
}

.om-login-subtitle,
.om-register-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.5px;
    line-height: 1.6;
}

[data-theme="light"] .om-login-subtitle,
[data-theme="light"] .om-register-desc {
    color: rgba(13, 31, 45, 0.5);
}

/* ── GRID LAYOUT ─────────────────────────────────────────────────── */
.om-login-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    width: 100%;
    max-width: 900px;
}

/* ── CARDS ───────────────────────────────────────────────────────── */
.om-orcid-login-card,
.om-standard-login-card,
.om-register-form-wrap {
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.om-orcid-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.om-orcid-logo {
    background: #a6ce39;
    color: #000;
    font-size: 14px;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 4px;
}

.om-orcid-text {
    font-size: 18px;
    font-weight: 700;
    color: #a6ce39;
    letter-spacing: 1px;
}

.om-card-header {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

[data-theme="light"] .om-card-header {
    color: #0d1f2d;
}

.om-card-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
    margin-bottom: 32px;
}

[data-theme="light"] .om-card-desc {
    color: rgba(13, 31, 45, 0.55);
}

/* ── BUTTONS ─────────────────────────────────────────────────────── */
.om-btn-orcid {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #a6ce39;
    color: #000;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.om-btn-orcid:hover {
    background: #b7e33e;
    box-shadow: 0 0 20px rgba(166, 206, 57, 0.4);
    transform: translateY(-2px);
    text-decoration: none;
}

.om-btn-primary,
.om-btn-secondary {
    padding: 14px 28px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #fff;
    border-radius: 2px;
}

.om-btn-primary {
    background: #00d4ff;
    color: #000;
    border-color: #00d4ff;
}

.om-btn-primary:hover {
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
    background: #33e0ff;
}

.om-btn-secondary:hover {
    border-color: #00d4ff;
    color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

[data-theme="light"] .om-btn-primary {
    background: #b38b00;
    color: #fff;
    border-color: #b38b00;
}

[data-theme="light"] .om-btn-secondary {
    border-color: rgba(179, 139, 0, 0.3);
    color: #0d1f2d;
}

/* ── FORMS ───────────────────────────────────────────────────────── */
.om-form-group {
    margin-bottom: 24px;
}

.om-form-group label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 8px;
}

[data-theme="light"] .om-form-group label {
    color: rgba(13, 31, 45, 0.45);
}

.om-form-group input[type="text"],
.om-form-group input[type="password"],
.om-form-group input[type="email"],
.om-form-group select,
.om-form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 12px 16px;
    color: #fff;
    font-size: 14px;
    transition: border-color 0.2s, background 0.2s;
}

[data-theme="light"] .om-form-group input,
[data-theme="light"] .om-form-group select,
[data-theme="light"] .om-form-group textarea {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(179, 139, 0, 0.15);
    color: #0d1f2d;
}

.om-form-group input:focus {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.03);
    outline: none;
}

[data-theme="light"] .om-form-group input:focus {
    border-color: #b38b00;
}

.om-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.om-remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
}

.om-lost-password {
    font-size: 12px;
    color: #00d4ff;
    text-decoration: none;
}

[data-theme="light"] .om-lost-password {
    color: #b38b00;
}

.om-orcid-help {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.om-orcid-help p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
}

.om-orcid-help a {
    color: #a6ce39;
    text-decoration: none;
    font-weight: 600;
}

/* ── ALERTS ──────────────────────────────────────────────────────── */
.om-alert {
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 24px;
    border: 1px solid transparent;
}

.om-alert-error {
    background: rgba(255, 82, 82, 0.1);
    border-color: rgba(255, 82, 82, 0.3);
    color: #ff5252;
}

/* ── REGISTRATION EXTRAS ─────────────────────────────────────────── */
.om-register-form-wrap {
    max-width: 800px;
    width: 100%;
}

.om-login-link {
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.om-login-link a {
    color: #00d4ff;
    text-decoration: none;
}

[data-theme="light"] .om-login-link a {
    color: #b38b00;
}

/* ── MOBILE ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .om-login-grid { grid-template-columns: 1fr; }
    .om-orcid-login-card, .om-standard-login-card, .om-register-form-wrap { padding: 24px; }
    .om-login-contact-strip { flex-direction: column; gap: 4px; text-align: center; }
}

/* ── CONTACT STRIP ────────────────────────────────────────────────── */
.om-login-contact-strip {
    width: 100%;
    max-width: 900px;
    margin: 28px auto 0;
    padding: 14px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.3px;
}

[data-theme="light"] .om-login-contact-strip {
    border-top-color: rgba(179, 139, 0, 0.08);
    color: rgba(13, 31, 45, 0.35);
}

.om-login-contact-strip a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.om-login-contact-strip a:hover { color: #00d4ff; }

[data-theme="light"] .om-login-contact-strip a {
    color: rgba(13, 31, 45, 0.5);
}

[data-theme="light"] .om-login-contact-strip a:hover { color: #b38b00; }
