@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Playfair+Display:wght@600&display=swap');

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pupr-navy:     #0B2545;
    --pupr-blue:     #134074;
    --pupr-accent:   #F4A11B;
    --pupr-light:    #E8F0FE;
    --pupr-white:    #FFFFFF;
    --pupr-gray:     #6B7280;
    --pupr-gray-lt:  #F3F4F6;
    --pupr-border:   #D1D9E6;
    --pupr-danger:   #DC2626;
    --pupr-success:  #16A34A;

    --shadow-sm:  0 1px 3px rgba(11,37,69,0.08), 0 1px 2px rgba(11,37,69,0.04);
    --shadow-md:  0 4px 16px rgba(11,37,69,0.10), 0 2px 6px rgba(11,37,69,0.06);
    --shadow-lg:  0 20px 60px rgba(11,37,69,0.18), 0 8px 24px rgba(11,37,69,0.10);
    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --radius-xl:  28px;
}

html, body {
    height: 100%;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #0D1B2E;
    overflow: hidden;
}

/* ─── ANIMATED BACKGROUND ─── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(19,64,116,0.55) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(244,161,27,0.12) 0%, transparent 55%),
        radial-gradient(ellipse 50% 70% at 70% 20%, rgba(11,37,69,0.7) 0%, transparent 60%),
        linear-gradient(145deg, #0B1D30 0%, #0D2444 40%, #071628 100%);
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(255,255,255,0.018) 80px),
        repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(255,255,255,0.018) 80px);
    z-index: 0;
}

/* ─── FLOATING ORBS ─── */
.container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
    overflow: hidden;
}

.container::before,
.container::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    animation: floatOrb 12s ease-in-out infinite;
    pointer-events: none;
}

.container::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(244,161,27,0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation-duration: 14s;
}

.container::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(19,64,116,0.20) 0%, transparent 70%);
    bottom: -80px;
    left: -60px;
    animation-duration: 18s;
    animation-delay: -6s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(20px, -30px) scale(1.05); }
    66%       { transform: translate(-15px, 20px) scale(0.97); }
}

/* ─── LOGIN CARD ─── */
.login-card {
    display: flex;
    width: 100%;
    max-width: 960px;
    min-height: 580px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.06);
    animation: cardIn 0.65s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(32px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── LEFT PANEL ─── */
.left {
    flex: 1;
    background: #FFFFFF;
    padding: 3rem 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    min-width: 340px;
}

.left::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pupr-navy) 0%, var(--pupr-blue) 50%, var(--pupr-accent) 100%);
}

/* ─── LOGO ─── */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2.2rem;
    animation: fadeUp 0.5s 0.2s both;
}

.logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(11,37,69,0.15));
}

.logo h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--pupr-navy);
    letter-spacing: 0.04em;
    line-height: 1.25;
    text-transform: uppercase;
}

/* ─── HEADING ─── */
.left > h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 2rem;
    color: var(--pupr-navy);
    margin-bottom: 0.5rem;
    animation: fadeUp 0.5s 0.25s both;
    line-height: 1.2;
}

.left > p {
    font-size: 0.9rem;
    color: var(--pupr-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
    animation: fadeUp 0.5s 0.3s both;
}

/* ─── FORM ─── */
form {
    display: flex;
    flex-direction: column;
    gap: 0;
    animation: fadeUp 0.5s 0.35s both;
}

.field-group {
    position: relative;
    margin-bottom: 1rem;
}

form input[type="text"],
form input[type="password"] {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 3rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--pupr-navy);
    background: var(--pupr-gray-lt);
    border: 1.5px solid transparent;
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    margin-bottom: 1rem;
}

form input[type="text"]:focus,
form input[type="password"]:focus {
    background: #FFFFFF;
    border-color: var(--pupr-blue);
    box-shadow: 0 0 0 3px rgba(19,64,116,0.1);
}

form input[type="text"]::placeholder,
form input[type="password"]::placeholder {
    color: #9CA3AF;
    font-weight: 400;
}

/* ─── INPUT ICONS ─── */
.input-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.input-wrapper .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #9CA3AF;
    pointer-events: none;
    transition: color 0.2s;
}

.input-wrapper:focus-within .icon {
    color: var(--pupr-blue);
}

.input-wrapper input {
    width: 100%;
    padding: 0.82rem 1rem 0.82rem 2.8rem !important;
    margin-bottom: 0 !important;
}

/* ─── OPTIONS ROW ─── */
.options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.4rem;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.83rem;
    color: var(--pupr-gray);
    user-select: none;
}

.remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--pupr-navy);
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

.remember span {
    font-size: 0.83rem;
    color: var(--pupr-gray);
}

.forgot {
    font-size: 0.83rem;
    color: var(--pupr-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot:hover {
    color: var(--pupr-accent);
    text-decoration: underline;
}

/* ─── LOGIN BUTTON ─── */
.btn-login {
    width: 100%;
    padding: 0.88rem 1.5rem;
    background: linear-gradient(135deg, var(--pupr-navy) 0%, var(--pupr-blue) 100%);
    color: #FFFFFF;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s, background 0.25s;
    box-shadow: 0 4px 14px rgba(11,37,69,0.35);
    position: relative;
    overflow: hidden;
}

.btn-login::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.08) 100%);
    opacity: 0;
    transition: opacity 0.2s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11,37,69,0.4);
}

.btn-login:hover::after {
    opacity: 1;
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(11,37,69,0.3);
}

/* ─── DIVIDER ─── */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1.4rem 0 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--pupr-border);
}

.divider span {
    font-size: 0.78rem;
    color: #9CA3AF;
    white-space: nowrap;
}

/* ─── RIGHT PANEL ─── */
.right {
    flex: 1.1;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

/* ─── BACKGROUND IMAGE ─── */
.image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.image::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(11,37,69,0.95) 0%, rgba(11,37,69,0.55) 45%, rgba(11,37,69,0.25) 100%);
}

/* ─── RIGHT INFO ─── */
.info {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding: 2rem 2.2rem;
    color: #FFFFFF;
}

.info::before {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--pupr-accent);
    border-radius: 2px;
    margin-bottom: 1rem;
}

.info h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.35rem;
    line-height: 1.3;
    margin-bottom: 0.3rem;
    color: #FFFFFF;
}

.info > p:first-of-type {
    font-size: 0.83rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pupr-accent);
    margin-bottom: 1.2rem;
}

.info-detail {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.info-detail p,
.info p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
}

/* ─── BADGE / YEAR STAMP ─── */
.right-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 2;
    background: rgba(244,161,27,0.18);
    border: 1px solid rgba(244,161,27,0.35);
    color: var(--pupr-accent);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 50px;
    backdrop-filter: blur(6px);
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── FOOTER TEXT ─── */
.footer-text {
    font-size: 0.72rem;
    color: #C4C9D4;
    text-align: center;
    margin-top: 1.8rem;
    letter-spacing: 0.02em;
}

/* ─── RESPONSIVE ─── */

/* Tablet landscape */
@media (max-width: 1024px) {
    .login-card {
        max-width: 820px;
    }
}

/* Tablet portrait */
@media (max-width: 720px) {
    html, body { overflow: auto; }

    .login-card {
        flex-direction: column;
        max-width: 460px;
        min-height: auto;
        border-radius: var(--radius-lg);
    }

    .right {
        min-height: 190px;
        order: -1;
    }

    .info { padding: 1.2rem 1.6rem; }
    .info h3 { font-size: 1rem; }
    .info p  { font-size: 0.78rem; }

    .left {
        padding: 2rem 1.8rem 1.8rem;
        min-width: unset;
    }

    .left > h2 { font-size: 1.6rem; }
}

/* Mobile */
@media (max-width: 480px) {
    .container { padding: 1rem; }

    .login-card {
        max-width: 100%;
        border-radius: var(--radius-md);
    }

    .left {
        padding: 1.6rem 1.4rem 1.5rem;
    }

    .left > h2 { font-size: 1.4rem; }

    .logo h2 { font-size: 1rem; }

    .right { min-height: 150px; }

    .info { padding: 1rem 1.2rem; }
    .info h3 { font-size: 0.9rem; }
    .info p  { font-size: 0.72rem; }
}