/* ================== GOOGLE FONTS ================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

/* ================== COLOR VARIABLES ================== */
:root {
    --primary-green: #10b981;
    --primary-glow: rgba(16, 185, 129, 0.5);
    --secondary-green: #059669;
    --dark-bg: #020617;
    --card-bg: rgba(15, 23, 42, 0.4);
    --matte-black: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.05);
    --input-bg: rgba(0, 0, 0, 0.4);
    --gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --accent-glow: radial-gradient(circle at center, var(--primary-glow) 0%, transparent 70%);
}

/* ================== GLOBAL ================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: var(--dark-bg);
    background-image:
        radial-gradient(circle at 0% 0%, rgba(16, 185, 129, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(16, 185, 129, 0.1) 0%, transparent 40%),
        linear-gradient(rgba(16, 185, 129, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 50px 50px, 50px 50px;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    overflow: hidden;
    position: relative;
}

/* Animated gradient blobs */
body::after,
body::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
    z-index: -1;
    animation: move 20s infinite alternate;
}

body::after {
    bottom: -200px;
    right: -200px;
    animation-delay: -10s;
}

@keyframes move {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(100px, 100px);
    }
}

/* ================== LOGO ================== */
.navbar-logo {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 100;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.navbar-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

/* ================== LOGIN WRAPPER & CARD ================== */
.login-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 60px 50px;
    background: var(--card-bg);
    backdrop-filter: blur(25px);
    border-radius: 40px;
    border: 1px solid var(--border-color);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
    animation: reveal 1s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Card shimmer effect */
.login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transition: 0.5s;
    pointer-events: none;
}

.login-card:hover::before {
    left: 100%;
}

@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(to bottom right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.form-sub {
    color: var(--text-secondary);
    font-size: 15px;
    opacity: 0.8;
}

/* ================== FORM ELEMENTS ================== */
.input-group {
    margin-bottom: 24px;
}

input {
    width: 100%;
    padding: 18px 22px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    color: white;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
}

input:focus {
    border-color: var(--primary-green);
    background: rgba(16, 185, 129, 0.08);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.2);
    transform: translateY(-2px);
}

.options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 40px;
}

.options a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: 0.3s;
    opacity: 0.7;
}

.options a:hover {
    color: var(--primary-green);
    opacity: 1;
}

button {
    width: 100%;
    padding: 20px;
    border: none;
    border-radius: 16px;
    background: var(--gradient);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.4);
    position: relative;
    overflow: hidden;
}

button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.6s;
}

button:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 35px -10px rgba(16, 185, 129, 0.6);
}

button:hover::after {
    left: 100%;
}

button:active {
    transform: translateY(-2px) scale(0.98);
}

/* ================== FOOTER ================== */
.footer {
    margin-top: 40px;
    text-align: center;
    color: #4b5563;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.6;
}

/* ================== RESPONSIVE ================== */
@media(max-width: 640px) {
    .login-wrapper {
        padding: 20px;
    }

    .login-card {
        padding: 50px 30px;
        border-radius: 30px;
    }

    .navbar-logo {
        top: 25px;
        left: 25px;
    }
}