/* PASTIC RGMS — Bespoke Admin Login Page */

*, *::before, *::after {
    box-sizing: border-box;
}

html, body.rgms-account-body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.rgms-login-page {
    display: flex;
    min-height: 100vh;
    background: #f4f6f8;
}

/* ── Brand panel (left) ── */
.rgms-login-brand {
    flex: 1 1 48%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 56px;
    background: linear-gradient(145deg, #1a252f 0%, #2c3e50 45%, #1e3a4a 100%);
    color: #fff;
    overflow: hidden;
}

.rgms-login-brand::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -80px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 188, 156, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.rgms-login-brand::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 188, 156, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.rgms-login-brand-inner {
    position: relative;
    z-index: 1;
    max-width: 440px;
}

.rgms-login-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 36px;
}

.rgms-login-logo-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.rgms-login-logo-text {
    line-height: 1.2;
}

.rgms-login-logo-text .brand-title {
    display: block;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.rgms-login-logo-text .brand-sub {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 2px;
}

.rgms-login-brand h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 14px;
    color: #fff;
}

.rgms-login-brand .brand-tagline {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 36px;
}

.rgms-login-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rgms-login-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rgms-login-features li:last-child {
    border-bottom: none;
}

.rgms-login-features li i {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(26, 188, 156, 0.2);
    color: #1abc9c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.rgms-login-brand-footer {
    position: absolute;
    bottom: 28px;
    left: 56px;
    right: 56px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    z-index: 1;
}

/* ── Form panel (right) ── */
.rgms-login-panel {
    flex: 1 1 52%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
}

.rgms-login-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
    padding: 40px 36px 32px;
}

.rgms-login-card-header {
    margin-bottom: 28px;
}

.rgms-login-card-header h2 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50;
}

.rgms-login-card-header p {
    margin: 0;
    font-size: 14px;
    color: #8899a6;
}

.rgms-login-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #16a085;
    background: rgba(26, 188, 156, 0.12);
    border-radius: 20px;
}

.rgms-login-field {
    margin-bottom: 18px;
}

.rgms-login-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.rgms-login-input-wrap {
    position: relative;
}

.rgms-login-input-wrap i.field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #aab4be;
    font-size: 15px;
    pointer-events: none;
    z-index: 1;
}

.rgms-login-input-wrap input[type="text"],
.rgms-login-input-wrap input[type="password"] {
    width: 100%;
    height: 46px;
    padding: 0 44px 0 42px;
    border: 1.5px solid #e2e8ee;
    border-radius: 10px;
    font-size: 14px;
    color: #2c3e50;
    background: #fafbfc;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.rgms-login-input-wrap input:focus {
    border-color: #1abc9c;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.15);
}

.rgms-login-toggle-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #aab4be;
    cursor: pointer;
    padding: 4px 6px;
    font-size: 15px;
    line-height: 1;
    z-index: 2;
}

.rgms-login-toggle-pw:hover {
    color: #1abc9c;
}

.rgms-login-field span {
    display: block;
    font-size: 12px;
    margin-top: 4px;
}

.rgms-login-error {
    display: block;
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 16px;
}

.rgms-login-error i {
    margin-right: 6px;
}

.rgms-login-btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #1abc9c, #16a085);
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(26, 188, 156, 0.35);
    margin-top: 4px;
}

.rgms-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26, 188, 156, 0.45);
}

.rgms-login-btn:active {
    transform: translateY(0);
}

.rgms-login-panel-footer {
    margin-top: 28px;
    text-align: center;
    font-size: 12px;
    color: #999;
    line-height: 1.6;
    max-width: 400px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .rgms-login-page {
        flex-direction: column;
    }

    .rgms-login-brand {
        flex: none;
        padding: 36px 28px 48px;
        min-height: auto;
    }

    .rgms-login-brand h1 {
        font-size: 24px;
    }

    .rgms-login-features {
        display: none;
    }

    .rgms-login-brand-footer {
        display: none;
    }

    .rgms-login-panel {
        padding: 28px 20px 36px;
        margin-top: -24px;
    }

    .rgms-login-card {
        padding: 32px 24px 24px;
        border-radius: 14px;
    }
}

@media (max-width: 420px) {
    .rgms-login-card-header h2 {
        font-size: 22px;
    }
}

/* ── Public auth extras ── */
.rgms-login-card--wide {
    max-width: 460px;
}

.rgms-login-success {
    display: block;
    background: #e8f8f0;
    color: #1e8449;
    border: 1px solid #a9dfbf;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.rgms-login-success a {
    color: #16a085;
    font-weight: 600;
    text-decoration: none;
}

.rgms-login-success a:hover {
    text-decoration: underline;
}

.rgms-login-status {
    display: block;
    text-align: center;
    font-size: 15px;
    line-height: 1.6;
    padding: 20px 8px;
    margin-bottom: 8px;
}

.rgms-login-status a {
    color: #16a085;
    font-weight: 600;
    text-decoration: none;
}

.rgms-login-status a:hover {
    text-decoration: underline;
}

.rgms-login-extras {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 20px;
    font-size: 13px;
    color: #8899a6;
}

.rgms-login-extras a {
    color: #1abc9c;
    text-decoration: none;
    font-weight: 500;
}

.rgms-login-extras a:hover {
    text-decoration: underline;
}

.rgms-login-extras a.rgms-login-link-muted {
    color: #e74c3c;
}

.rgms-login-extras .sep {
    color: #d5dbe0;
}

.rgms-login-input-wrap input[disabled] {
    background: #eef1f4;
    color: #7f8c8d;
    cursor: not-allowed;
}

.rgms-login-badge--scientist {
    color: #2980b9;
    background: rgba(41, 128, 185, 0.12);
}
