/* ============================================================
   CCFJ Entry Test — Login Page Styles
   Colors: Navy #0d1b3e | Gold #e8951a | White #ffffff
   ============================================================ */

/* ── Full-page override when login shortcode is active ── */
body.ccfj-login-active {
    margin: 0;
    padding: 0;
    background: #0d1b3e;
}

body.ccfj-login-active .site-header,
body.ccfj-login-active header.site-header,
body.ccfj-login-active #masthead,
body.ccfj-login-active #site-navigation,
body.ccfj-login-active .main-navigation,
body.ccfj-login-active footer,
body.ccfj-login-active .site-footer,
body.ccfj-login-active #colophon,
body.ccfj-login-active #wpadminbar {
    display: none !important;
}

body.ccfj-login-active #page,
body.ccfj-login-active #content,
body.ccfj-login-active .site-content,
body.ccfj-login-active main,
body.ccfj-login-active .entry-content,
body.ccfj-login-active article {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* ── Outer wrap ─────────────────────────────────────── */
.ccfj-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    overflow: hidden;

    /* Navy gradient background */
    background:
        radial-gradient(ellipse at 20% 50%, rgba(232, 149, 26, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(232, 149, 26, 0.05) 0%, transparent 50%),
        linear-gradient(160deg, #071025 0%, #0d1b3e 40%, #0f2252 70%, #0d1b3e 100%);
}

/* Decorative corner accents */
.ccfj-login-wrap::before,
.ccfj-login-wrap::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    opacity: .06;
    pointer-events: none;
}
.ccfj-login-wrap::before {
    width: 600px; height: 600px;
    background: #e8951a;
    top: -200px; right: -200px;
}
.ccfj-login-wrap::after {
    width: 400px; height: 400px;
    background: #e8951a;
    bottom: -150px; left: -150px;
}

/* ── Card ────────────────────────────────────────────── */
.ccfj-login-card {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(232, 149, 26, 0.15);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Gold top border */
.ccfj-login-card::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #e8951a, #f5c060, #e8951a);
}

/* ── Header ──────────────────────────────────────────── */
.ccfj-login-header {
    background: linear-gradient(160deg, #0d1b3e 0%, #0f2252 100%);
    padding: 32px 32px 24px;
    text-align: center;
    color: #fff;
}

.ccfj-login-crest {
    margin-bottom: 14px;
    position: relative;
    display: inline-block;
}

.ccfj-login-crest-fallback {
    font-size: 52px;
    line-height: 1;
    filter: drop-shadow(0 2px 8px rgba(232,149,26,.5));
}

.ccfj-login-header h1 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0,0,0,.3);
}

.ccfj-login-header h1 span {
    color: #e8951a;
}

.ccfj-login-header p {
    font-size: 13px;
    color: rgba(255,255,255,.65);
    margin: 8px 0 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ccfj-login-line {
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e8951a, transparent);
    margin: 18px auto 0;
    border-radius: 2px;
}

/* ── Error box ───────────────────────────────────────── */
.ccfj-login-error {
    margin: 16px 28px 0;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #991b1b;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Form ────────────────────────────────────────────── */
.ccfj-login-form {
    padding: 28px 32px;
}

.ccfj-field {
    margin-bottom: 20px;
}

.ccfj-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0d1b3e;
    margin-bottom: 8px;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.ccfj-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.ccfj-input-icon {
    position: absolute;
    left: 14px;
    font-size: 15px;
    opacity: .6;
    pointer-events: none;
    z-index: 1;
}

.ccfj-input-wrap input {
    width: 100%;
    padding: 13px 44px 13px 44px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    color: #0d1b3e;
    background: #f8fafc;
    transition: all .2s;
    outline: none;
    box-sizing: border-box;
}

.ccfj-input-wrap input:focus {
    border-color: #e8951a;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(232, 149, 26, 0.12);
}

.ccfj-input-wrap input::placeholder {
    color: #aab;
    font-size: 14px;
}

.ccfj-eye {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    padding: 4px;
    opacity: .6;
    transition: opacity .2s;
}
.ccfj-eye:hover { opacity: 1; }

/* ── Submit button ───────────────────────────────────── */
.ccfj-login-btn {
    width: 100%;
    padding: 15px;
    margin-top: 8px;
    background: linear-gradient(135deg, #e8951a, #d4831a);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .5px;
    cursor: pointer;
    transition: all .25s;
    box-shadow: 0 4px 16px rgba(232, 149, 26, 0.35);
}

.ccfj-login-btn:hover {
    background: linear-gradient(135deg, #f5a934, #e8951a);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 149, 26, 0.45);
}

.ccfj-login-btn:active {
    transform: translateY(0);
}

/* ── Footer ──────────────────────────────────────────── */
.ccfj-login-footer {
    padding: 0 32px 28px;
    text-align: center;
}

.ccfj-login-footer p {
    font-size: 12px;
    color: #94a3b8;
    margin: 0 0 4px;
}

.ccfj-login-brand {
    font-size: 11px !important;
    color: #cbd5e1 !important;
    font-style: italic;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 480px) {
    .ccfj-login-card { border-radius: 12px; }
    .ccfj-login-header { padding: 24px 20px 18px; }
    .ccfj-login-form { padding: 20px 20px; }
    .ccfj-login-footer { padding: 0 20px 24px; }
    .ccfj-login-header h1 { font-size: 17px; }
}
