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

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    min-height: 100vh;
    width: 100%;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
}

body {
    background:
        radial-gradient(circle at 12% 12%, rgba(34, 211, 238, 0.28), transparent 30%),
        radial-gradient(circle at 88% 18%, rgba(56, 189, 248, 0.22), transparent 34%),
        linear-gradient(rgba(3, 7, 18, 0.58), rgba(3, 7, 18, 0.62)),
        url('/images/login-bg-orion.jpg') center center / cover no-repeat fixed;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 16px;
    position: relative;
    overflow: hidden;
}

.login-wrapper::before,
.login-wrapper::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(42px);
    opacity: 0.7;
}

.login-wrapper::before {
    width: 220px;
    height: 220px;
    top: 9%;
    left: 8%;
    background: rgba(34, 211, 238, 0.32);
}

.login-wrapper::after {
    width: 260px;
    height: 260px;
    bottom: 5%;
    right: 6%;
    background: rgba(14, 165, 233, 0.28);
}

.login-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 251, 255, 0.92) 100%);
    border: 1px solid rgba(148, 163, 184, 0.38);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 34px 32px 24px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.28);
    animation: fadeInCard 0.5s ease;
    color: #0f172a;
    position: relative;
    z-index: 1;
}

.login-logo {
    width: 100%;
    border-radius: 16px;
    padding: 8px;
    margin-bottom: 16px;
    background: linear-gradient(180deg, rgba(240, 249, 255, 0.92), rgba(224, 242, 254, 0.72));
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.login-logo img {
    width: 100%;
    max-width: 320px;
    margin-bottom: 0;
    height: auto;
}

.login-title {
    font-weight: 800;
    font-size: 22px;
    margin-bottom: 24px;
    color: #0f172a;
    letter-spacing: 0.01em;
}

.form-label {
    color: #334155;
    text-align: left;
    width: 100%;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
}

.form-control {
    border-radius: 14px;
    height: 46px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #d0dbea;
    color: #1e293b;
}

.form-control:focus {
    background: #ffffff;
    border-color: #38bdf8;
    box-shadow: 0 0 0 0.18rem rgba(56, 189, 248, 0.2);
}

.form-control::placeholder {
    color: #8ea0b8;
}

.btn-login {
    border-radius: 14px;
    height: 46px;
    width: 100%;
    border: none;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    font-size: 16px;
    font-weight: 700;
    color: #f8fafc;
    transition: all 0.25s ease;
    box-shadow: 0 12px 24px rgba(2, 132, 199, 0.28);
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(2, 132, 199, 0.34);
}

.credentials-box {
    margin-top: 18px;
    font-size: 13px;
    color: #475569;
}

.forgot-link {
    color: #0369a1;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.forgot-link:hover {
    color: #0284c7;
    text-decoration: underline;
}

.alert {
    border-radius: 12px;
    border-left: 4px solid transparent;
}

.alert-danger {
    border-left-color: #ef4444;
}

@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 520px) {
    .login-card {
        padding: 28px 22px 22px;
        border-radius: 18px;
    }

    .login-logo img {
        max-width: 220px;
    }

    .login-title {
        font-size: 20px;
    }
}
