﻿/* ── Base ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    overflow: hidden;
    background: #0a1628;
}

/* ── Particles ── */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: #ffb703;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: .15;
    }

    50% {
        opacity: .25;
    }

    100% {
        transform: translateY(-100vh) scale(0.3);
        opacity: 0;
    }
}

/* ── Wrapper ── */
.login-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ════════════════════════════
   LEFT SIDE
════════════════════════════ */
.login-left {
    flex: 1;
    background: radial-gradient(circle at 15% 85%, rgba(255,183,3,.14) 0%, transparent 55%), radial-gradient(circle at 85% 15%, rgba(100,149,237,.12) 0%, transparent 55%), linear-gradient(160deg, #001233 0%, #002060 45%, #003399 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Animated orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    animation: orbPulse ease-in-out infinite;
}

.orb-1 {
    width: 420px;
    height: 420px;
    top: -140px;
    right: -100px;
    background: radial-gradient(circle, rgba(255,183,3,.12), transparent 70%);
    animation-duration: 7s;
}

.orb-2 {
    width: 280px;
    height: 280px;
    bottom: -80px;
    left: -60px;
    background: radial-gradient(circle, rgba(100,149,237,.1), transparent 70%);
    animation-duration: 9s;
    animation-delay: 2s;
}

.orb-3 {
    width: 160px;
    height: 160px;
    top: 50%;
    left: 30%;
    background: radial-gradient(circle, rgba(255,255,255,.04), transparent 70%);
    animation-duration: 5s;
    animation-delay: 1s;
}

@keyframes orbPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }
}

.left-content {
    position: relative;
    z-index: 5;
    padding: 60px 64px;
    width: 100%;
}

/* Logo */
.logo-wrap {
    position: relative;
    width: fit-content;
    margin-bottom: 28px;
    animation: fadeUp .6s ease both;
}

.ngo-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,.15);
    display: block;
    position: relative;
    z-index: 2;
}

.logo-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,183,3,.4);
    animation: ringRotate 8s linear infinite;
}

    .logo-ring::after {
        content: '';
        position: absolute;
        width: 8px;
        height: 8px;
        background: #ffb703;
        border-radius: 50%;
        top: 50%;
        left: -4px;
        transform: translateY(-50%);
    }

@keyframes ringRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Title */
.ngo-title {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
    animation: fadeUp .6s .1s ease both;
}

.ngo-tagline {
    font-size: 15px;
    color: rgba(255,183,3,.85);
    font-weight: 500;
    letter-spacing: 0.8px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeUp .6s .2s ease both;
}

.dot {
    width: 5px;
    height: 5px;
    background: #ffb703;
    border-radius: 50%;
    display: inline-block;
    opacity: .6;
}

/* Impact cards */
.impact-grid {
    display: flex;
    gap: 16px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.impact-card {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 18px 20px;
    border-radius: 16px;
    text-align: center;
    min-width: 110px;
    flex: 1;
    transition: transform .25s ease, background .25s ease;
    animation: fadeUp .6s ease both;
}

    .impact-card:hover {
        transform: translateY(-5px);
        background: rgba(255,255,255,.11);
    }

.impact-icon {
    font-size: 18px;
    color: #ffb703;
    margin-bottom: 8px;
    opacity: .8;
}

.impact-card h3 {
    font-size: 28px;
    font-weight: 800;
    color: #ffb703;
    margin: 0 0 4px;
    line-height: 1;
}

.impact-card span {
    font-size: 11px;
    color: rgba(255,255,255,.65);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Trust strip */
.trust-strip {
    display: flex;
    align-items: center;
    gap: 16px;
    animation: fadeUp .6s .4s ease both;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,.55);
    font-size: 12px;
    font-weight: 500;
}

    .trust-item i {
        color: #ffb703;
        font-size: 13px;
        opacity: .7;
    }

.trust-sep {
    width: 1px;
    height: 14px;
    background: rgba(255,255,255,.2);
}

/* ════════════════════════════
   RIGHT SIDE
════════════════════════════ */
.login-right {
    width: 480px;
    background: #f0f4f8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 36px;
    gap: 16px;
}

/* Login Card */
.login-card {
    width: 100%;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 4px 6px rgba(0,0,0,.04), 0 20px 60px rgba(0,32,96,.1);
    overflow: hidden;
    animation: slideUp .6s cubic-bezier(.22,.68,0,1.2) both;
}

.card-top-bar {
    height: 4px;
    background: linear-gradient(90deg, #002060, #ffb703, #002060);
    background-size: 200% 100%;
    animation: shimmer 3s ease infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.login-header {
    padding: 32px 36px 24px;
    text-align: center;
    border-bottom: 0.5px solid #f1f5f9;
}

.header-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #002060, #0038a8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0,32,96,.25);
}

.login-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: #002060;
    margin-bottom: 4px;
}

.login-header p {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 400;
}

/* Error alert */
.error-alert {
    margin: 0 36px;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #991b1b;
    font-weight: 500;
    animation: shake .4s ease;
}

    .error-alert i {
        font-size: 15px;
        color: #ef4444;
        flex-shrink: 0;
    }

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

/* Form */
form {
    padding: 24px 36px 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: fadeUp .5s ease both;
}

    .form-group label {
        font-size: 11px;
        font-weight: 700;
        color: #64748b;
        letter-spacing: .7px;
        text-transform: uppercase;
    }

.input-box {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
    transition: color .2s;
    pointer-events: none;
    z-index: 1;
}

.form-input {
    width: 100%;
    height: 52px;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 0 46px 0 46px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    background: #f8fafc;
    outline: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

    .form-input::placeholder {
        color: #cbd5e1;
    }

    .form-input:focus {
        border-color: #002060;
        background: #fff;
        box-shadow: 0 0 0 4px rgba(0,32,96,.08);
    }

        .form-input:focus + .input-icon,
        .input-box:focus-within .input-icon {
            color: #002060;
        }

.eye-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    font-size: 14px;
    padding: 4px;
    border-radius: 6px;
    transition: color .2s;
}

    .eye-toggle:hover {
        color: #002060;
    }

.field-error {
    font-size: 11px;
    color: #ef4444;
    font-weight: 500;
}

/* Login button */
.login-btn {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #ffb703 0%, #ffd166 50%, #ffb703 100%);
    background-size: 200% 100%;
    color: #1a0f00;
    font-weight: 700;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background-position .4s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: fadeUp .5s .15s ease both;
}

    .login-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(255,183,3,.45);
        background-position: right center;
    }

    .login-btn:active {
        transform: scale(.97);
        box-shadow: none;
    }

    .login-btn:disabled {
        opacity: .8;
        cursor: wait;
    }

.btn-text, .btn-loader {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Security row */
.security-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 14px 36px 24px;
    flex-wrap: wrap;
}

    .security-row span {
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 11px;
        color: #94a3b8;
        font-weight: 500;
    }

    .security-row i {
        color: #22c55e;
        font-size: 12px;
    }

/* Footer */
.footer-text {
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
    font-weight: 400;
}

/* ── Animations ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(.97);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ════════════════════════════
   RESPONSIVE
════════════════════════════ */
@media (max-width: 1100px) {
    .ngo-title {
        font-size: 34px;
    }

    .left-content {
        padding: 50px 48px;
    }
}

@media (max-width: 991px) {
    body {
        overflow: auto;
    }

    .login-wrapper {
        flex-direction: column;
        min-height: 100vh;
    }

    .login-left {
        min-height: 300px;
        padding: 40px 28px;
        align-items: center;
    }

    .left-content {
        padding: 0;
        text-align: center;
    }

    .logo-wrap {
        margin: 0 auto 20px;
    }

    .ngo-title {
        font-size: 26px;
    }

    .ngo-tagline {
        justify-content: center;
        font-size: 13px;
    }

    .impact-grid {
        justify-content: center;
    }

    .trust-strip {
        justify-content: center;
    }

    .login-right {
        width: 100%;
        padding: 32px 20px;
    }

    .login-card {
        max-width: 440px;
    }
}

@media (max-width: 480px) {
    .login-left {
        min-height: 260px;
    }

    .ngo-title {
        font-size: 22px;
    }

    .impact-card {
        min-width: 80px;
        padding: 14px 12px;
    }

        .impact-card h3 {
            font-size: 22px;
        }

    form {
        padding: 20px 24px 16px;
    }

    .login-header {
        padding: 24px 24px 18px;
    }

    .security-row {
        padding: 12px 24px 20px;
        gap: 14px;
    }
}
