﻿
/*
  JOY INTERNATIONAL COLLEGE, KADUNA
  School Result Portal — Academic UI Theme
  Phase 19
*/

:root {
    --jic-blue: #086f9c;
    --jic-blue-dark: #07567c;
    --jic-navy: #102f50;
    --jic-navy-deep: #091f38;
    --jic-gold: #ffd12b;
    --jic-background: #f4f7fb;
    --jic-surface: #ffffff;
    --jic-text: #192d46;
    --jic-muted: #697c91;
    --jic-border: #e2e9f1;
    --jic-success: #16835d;
    --jic-danger: #bf3545;
    --jic-radius: 16px;
    --jic-shadow: 0 18px 55px rgba(16, 47, 80, 0.08);
    --jic-font: "Segoe UI", "Inter", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body.jic-app {
    margin: 0;
    min-height: 100vh;
    background: var(--jic-background);
    color: var(--jic-text);
    font-family: var(--jic-font);
    -webkit-font-smoothing: antialiased;
}

.jic-app a {
    text-decoration: none;
}

.jic-app button,
.jic-app input {
    font: inherit;
}

/* =====================================
   STUDENT LOGIN LAYOUT
   ===================================== */

.jic-login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(410px, 0.95fr);
    min-height: 100vh;
}

/* =====================================
   SCHOOL BRANDING PANEL
   ===================================== */

.jic-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: clamp(30px, 5vw, 78px);
    color: #ffffff;
    background: linear-gradient( 145deg, var(--jic-navy-deep) 0%, var(--jic-navy) 52%, var(--jic-blue-dark) 100% );
}

    .jic-brand-panel::before {
        content: "";
        position: absolute;
        width: 540px;
        height: 540px;
        right: -250px;
        bottom: -240px;
        border: 1px solid rgba(255, 255, 255, 0.13);
        border-radius: 50%;
        box-shadow: 0 0 0 65px rgba(255, 255, 255, 0.025), 0 0 0 135px rgba(255, 255, 255, 0.025);
        pointer-events: none;
    }

    .jic-brand-panel::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 130px;
        height: 5px;
        background: var(--jic-gold);
    }

.jic-brand-header,
.jic-brand-content,
.jic-brand-footer {
    position: relative;
    z-index: 1;
}

.jic-brand-header {
    display: flex;
    align-items: center;
    gap: 18px;
}

.jic-logo-frame {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    padding: 9px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.jic-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.jic-brand-name {
    max-width: 330px;
    margin: 0 0 6px;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.3;
    font-weight: 750;
    letter-spacing: 0.01em;
}

.jic-brand-location {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.73);
}

.jic-brand-content {
    max-width: 570px;
    padding: 65px 0;
}

.jic-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 24px;
    padding: 9px 15px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.jic-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--jic-gold);
}

.jic-brand-heading {
    max-width: 550px;
    margin: 0 0 22px;
    font-size: clamp(36px, 4.7vw, 61px);
    line-height: 1.12;
    font-weight: 750;
    letter-spacing: -0.035em;
}

    .jic-brand-heading em {
        color: var(--jic-gold);
        font-style: normal;
    }

.jic-brand-description {
    max-width: 460px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    line-height: 1.8;
}

.jic-brand-divider {
    width: 55px;
    height: 3px;
    margin: 28px 0;
    background: var(--jic-gold);
    border-radius: 4px;
}

.jic-motto {
    max-width: 440px;
    margin: 0;
    color: #ffffff;
    font-size: 15px;
    font-style: italic;
    line-height: 1.7;
}

.jic-brand-footer {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.59);
}

/* =====================================
   LOGIN FORM SIDE
   ===================================== */

.jic-login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px clamp(22px, 5vw, 70px);
    background: radial-gradient( circle at 95% 5%, rgba(8, 111, 156, 0.065), transparent 38% ), var(--jic-background);
}

.jic-login-content {
    width: 100%;
    max-width: 475px;
}

.jic-login-topline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--jic-blue);
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

    .jic-login-topline::before {
        content: "";
        width: 26px;
        height: 3px;
        background: var(--jic-gold);
        border-radius: 5px;
    }

.jic-auth-card {
    padding: clamp(27px, 4vw, 46px);
    background: var(--jic-surface);
    border: 1px solid var(--jic-border);
    border-radius: 22px;
    box-shadow: var(--jic-shadow);
}

.jic-auth-heading {
    margin: 0 0 10px;
    color: var(--jic-navy);
    font-size: clamp(26px, 3vw, 33px);
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: -0.025em;
}

.jic-auth-description {
    margin: 0 0 33px;
    color: var(--jic-muted);
    font-size: 14px;
    line-height: 1.75;
}

.jic-form-group {
    margin-bottom: 24px;
}

.jic-form-label {
    display: block;
    margin-bottom: 10px;
    color: var(--jic-text);
    font-size: 13px;
    font-weight: 700;
}

.jic-form-control {
    display: block;
    width: 100%;
    min-height: 54px;
    padding: 13px 16px;
    background: #ffffff;
    border: 1px solid #d6e0eb;
    border-radius: 11px;
    color: var(--jic-text);
    font-size: 15px;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

    .jic-form-control::placeholder {
        color: #9aa9b9;
    }

    .jic-form-control:focus {
        border-color: var(--jic-blue);
        box-shadow: 0 0 0 4px rgba(8, 111, 156, 0.10);
    }

.jic-form-help {
    display: block;
    margin-top: 9px;
    color: var(--jic-muted);
    font-size: 12px;
    line-height: 1.6;
}

.jic-submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 54px;
    margin-top: 8px;
    padding: 13px 18px;
    background: var(--jic-blue);
    border: 1px solid var(--jic-blue);
    border-radius: 11px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

    .jic-submit-button:hover {
        background: var(--jic-blue-dark);
        box-shadow: 0 10px 22px rgba(8, 111, 156, 0.18);
        transform: translateY(-1px);
    }

    .jic-submit-button:focus-visible {
        outline: 3px solid var(--jic-gold);
        outline-offset: 3px;
    }

.jic-button-arrow {
    font-size: 20px;
    line-height: 1;
}

.jic-error-message {
    margin: 0 0 25px;
    padding: 14px 16px;
    border: 1px solid #f0c6cc;
    border-radius: 11px;
    background: #fff1f3;
    color: #a32738;
    font-size: 13px;
    line-height: 1.6;
}

.jic-auth-separator {
    height: 1px;
    margin: 30px 0 21px;
    background: var(--jic-border);
}

.jic-help-heading {
    margin: 0 0 8px;
    color: var(--jic-navy);
    font-size: 13px;
    font-weight: 700;
}

.jic-help-description {
    margin: 0;
    color: var(--jic-muted);
    font-size: 12px;
    line-height: 1.8;
}

.jic-login-footer {
    margin-top: 28px;
    text-align: center;
    color: var(--jic-muted);
    font-size: 12px;
    line-height: 1.8;
}

    .jic-login-footer a {
        color: var(--jic-blue);
        font-weight: 700;
    }

        .jic-login-footer a:hover {
            text-decoration: underline;
        }

/* =====================================
   RESPONSIVE LAYOUT
   ===================================== */

@media (max-width: 960px) {
    .jic-login-shell {
        grid-template-columns: 1fr;
    }

    .jic-brand-panel {
        min-height: auto;
        padding: 30px 26px;
    }

    .jic-brand-header {
        gap: 14px;
    }

    .jic-logo-frame {
        width: 76px;
        height: 76px;
        padding: 6px;
        border-radius: 13px;
    }

    .jic-brand-name {
        font-size: 18px;
    }

    .jic-brand-content {
        padding: 28px 0 12px;
    }

    .jic-brand-heading {
        max-width: 600px;
        margin-bottom: 12px;
        font-size: 30px;
    }

    .jic-brand-description {
        font-size: 14px;
    }

    .jic-brand-divider,
    .jic-motto,
    .jic-brand-footer {
        display: none;
    }

    .jic-eyebrow {
        margin-bottom: 13px;
    }

    .jic-login-panel {
        padding: 40px 18px 65px;
    }
}

@media (max-width: 520px) {
    .jic-brand-panel {
        padding: 24px 20px;
    }

    .jic-brand-heading {
        font-size: 26px;
    }

    .jic-brand-description {
        font-size: 13px;
    }

    .jic-auth-card {
        padding: 27px 21px;
        border-radius: 16px;
    }

    .jic-auth-heading {
        font-size: 26px;
    }

    .jic-login-panel {
        padding-top: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jic-form-control,
    .jic-submit-button {
        transition: none;
    }

        .jic-submit-button:hover {
            transform: none;
        }
}
