@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

    min-height: 100vh;

    background: linear-gradient(135deg, #0f0c29 0%, #1a0e4e 45%, #2d1b69 75%, #0f0c29 100%);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 25px;

    position: relative;
    overflow: hidden;
}

/* Animated background circles */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    animation: floatBg 12s ease-in-out infinite;
}

body::before {
    width: 500px;
    height: 500px;
    top: -150px;
    right: -150px;
    background: radial-gradient(circle, rgba(124,58,237,.25) 0%, transparent 70%);
    animation-delay: 0s;
}

body::after {
    width: 400px;
    height: 400px;
    bottom: -120px;
    left: -120px;
    background: radial-gradient(circle, rgba(6,182,212,.18) 0%, transparent 70%);
    animation-delay: -6s;
}

@keyframes floatBg {
    0%, 100% { transform: translateY(0px) scale(1); }
    50%       { transform: translateY(-30px) scale(1.05); }
}

/* Decorative dots */
.login-bg-dots {
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(rgba(167,139,250,.15) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.login-page {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.login-card {
    width: 100%;
    max-width: 460px;

    background: rgba(255,255,255,.06);

    border: 1.5px solid rgba(255,255,255,.12);

    border-radius: 28px;

    padding: 48px;

    box-shadow:
        0 30px 80px rgba(0,0,0,.4),
        inset 0 1px 0 rgba(255,255,255,.1);

    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);

    animation: slideUpIn .5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.logo {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg, #7c3aed, #06b6d4);

    color: white;

    border-radius: 15px;

    font-size: 24px;
    font-weight: 900;

    margin-bottom: 28px;

    box-shadow:
        0 8px 24px rgba(124,58,237,.4),
        inset 0 1px 0 rgba(255,255,255,.2);

    transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover {
    transform: scale(1.08) rotate(-5deg);
}

.eyebrow {
    background: linear-gradient(90deg, #a78bfa, #67e8f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    font-size: 9.5px;
    font-weight: 800;

    letter-spacing: 1.8px;

    text-transform: uppercase;
}

h1 {
    margin-top: 10px;
    margin-bottom: 10px;

    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.6px;

    color: #fff;
}

.subtitle {
    color: rgba(196,180,255,.7);

    font-size: 13px;

    line-height: 1.7;

    margin-bottom: 32px;
}

.error {
    padding: 13px 15px;

    margin-bottom: 22px;

    border-radius: 12px;

    background: rgba(239,68,68,.12);

    border: 1.5px solid rgba(239,68,68,.3);

    color: #fca5a5;

    font-size: 12px;
    font-weight: 600;

    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;

    margin-bottom: 8px;

    font-size: 11.5px;

    font-weight: 700;

    color: rgba(196,180,255,.9);
}

input {
    width: 100%;

    height: 50px;

    padding: 0 16px;

    border: 1.5px solid rgba(167,139,250,.2);

    border-radius: 12px;

    outline: none;

    background: rgba(255,255,255,.06);

    color: #fff;

    font-family: inherit;

    font-size: 13px;
    font-weight: 500;

    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

input::placeholder {
    color: rgba(167,139,250,.4);
}

input:focus {
    border-color: #a78bfa;

    background: rgba(255,255,255,.09);

    box-shadow: 0 0 0 4px rgba(124,58,237,.15);
}

button {
    width: 100%;

    height: 51px;

    border: none;

    border-radius: 12px;

    background: linear-gradient(135deg, #7c3aed, #5b21b6);

    color: white;

    font-family: inherit;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    margin-top: 8px;

    box-shadow:
        0 8px 24px rgba(124,58,237,.4),
        inset 0 1px 0 rgba(255,255,255,.15);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 30px rgba(124,58,237,.5),
        inset 0 1px 0 rgba(255,255,255,.15);
}

button:active {
    transform: translateY(0);
}

.bottom {
    display: flex;

    justify-content: space-between;

    gap: 15px;

    margin-top: 28px;

    padding-top: 22px;

    border-top: 1px solid rgba(255,255,255,.08);
}

.bottom a {
    color: rgba(167,139,250,.7);

    text-decoration: none;

    font-size: 10.5px;
    font-weight: 600;

    transition: color .2s ease;
}

.bottom a:hover {
    color: #c4b5fd;
}

@media (max-width: 520px) {

    body { padding: 16px; }

    .login-card {
        padding: 32px 24px;
        border-radius: 24px;
    }

    h1 { font-size: 24px; }

    .bottom { flex-direction: column; gap: 10px; }
}


.login-page {
    width: 100%;

    display: flex;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 460px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 24px;

    padding: 45px;

    box-shadow:
        0 25px 60px rgba(15,23,42,.08);
}

.logo {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #4f46e5;

    color: white;

    border-radius: 14px;

    font-size: 21px;
    font-weight: 800;

    margin-bottom: 25px;
}

.eyebrow {
    color: #4f46e5;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

h1 {
    margin-top: 10px;
    margin-bottom: 10px;

    font-size: 28px;

    color: #111827;
}

.subtitle {
    color: #6b7280;

    font-size: 13px;

    line-height: 1.7;

    margin-bottom: 30px;
}

.error {
    padding: 12px 14px;

    margin-bottom: 20px;

    border-radius: 10px;

    background: #fef2f2;

    border: 1px solid #fecaca;

    color: #b91c1c;

    font-size: 12px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;

    margin-bottom: 8px;

    font-size: 12px;

    font-weight: 700;

    color: #374151;
}

input {
    width: 100%;

    height: 50px;

    padding: 0 15px;

    border: 1px solid #e5e7eb;

    border-radius: 11px;

    outline: none;

    font-size: 13px;

    transition: .2s;
}

input:focus {
    border-color: #4f46e5;

    box-shadow:
        0 0 0 4px rgba(79,70,229,.08);
}

button {
    width: 100%;

    height: 51px;

    border: none;

    border-radius: 11px;

    background: #4f46e5;

    color: white;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

    margin-top: 5px;

    transition: .2s;
}

button:hover {
    background: #3730a3;

    transform: translateY(-1px);
}

.bottom {
    display: flex;

    justify-content: space-between;

    gap: 15px;

    margin-top: 25px;

    padding-top: 20px;

    border-top: 1px solid #f0f0f2;
}

.bottom a {
    color: #6b7280;

    text-decoration: none;

    font-size: 10px;
}

.bottom a:hover {
    color: #4f46e5;
}

@media(max-width: 520px) {

    .login-card {
        padding: 35px 25px;
    }

    .bottom {
        flex-direction: column;
    }

}