﻿:root {
    --accent: #0A2E50;
    --accent-hover: #146EB1;
    --blue: #0096FF;
    --lavender: #889CFF;
    --radius: 12px;
    --shadow: 0 20px 40px rgba(10,46,80,0.15);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, Roboto, Arial, sans-serif;
    background: radial-gradient(circle at top, #eaf1ff, #f4f6f8);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Animated Background */
.bg-blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: linear-gradient( 135deg, var(--blue), var(--lavender) );
    border-radius: 50%;
    filter: blur(120px);
    animation: float 12s ease-in-out infinite;
    opacity: 0.65;
}

@keyframes float {
    0% {
        transform: translate(-150px, -100px);
    }

    50% {
        transform: translate(150px, 100px);
    }

    100% {
        transform: translate(-150px, -100px);
    }
}

/* Glass card */
.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 380px;
    padding: 2rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    text-align: center;
}

    .login-container input,
    .login-container .btn {
        max-width: 100%;
    }

/* Logo */
.logo {
    max-width: 220px;
    margin: 3rem 0;
}

/* Inputs */
input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 1rem;
    border-radius: 6px;
    border: 1px solid #dde3ee;
    font-size: 15px;
}

    input:focus {
        outline: none;
        border-color: var(--blue);
        box-shadow: 0 0 0 3px rgba(0,150,255,0.15);
    }

/* Button */
.btn {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: none;
    background: linear-gradient(135deg, var(--accent), var(--blue));
    color: white;
    font-weight: 600;
    cursor: pointer;
    margin: 0 0 1rem 0;
}

    .btn:hover {
        opacity: 0.9;
    }

/* Links */
.links {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

    .links a {
        font-size: 14px;
        color: var(--accent);
        text-decoration: none;
    }

        .links a:hover {
            text-decoration: underline;
        }

.muted {
    margin-top: 0.75rem;
    font-size: 12px;
    color: #6b7280;
}

/* Modal overlay */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 46, 80, 0.85); /* semi-transparent dark overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Modal content box */
.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius);
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow);
}

/* Close button */
.modal .close {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 22px;
    cursor: pointer;
    color: var(--accent);
}
