@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-primary: #0b0f19;
    --bg-gradient: linear-gradient(135deg, #0b0f19 0%, #111827 50%, #1e1b4b 100%);
    --accent-indigo: #6366f1;
    --accent-violet: #8b5cf6;
    --accent-pink: #ec4899;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --glass-bg: rgba(17, 24, 39, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --input-bg: rgba(255, 255, 255, 0.03);
    --input-border: rgba(255, 255, 255, 0.1);
    --input-focus-border: #818cf8;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-gradient);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    color: var(--text-main);
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    width: 340px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
                0 0 50px rgba(99, 102, 241, 0.1);
    position: relative;
    z-index: 1;
    transition: var(--transition-smooth);
}

.container:hover {
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4),
                0 0 60px rgba(139, 92, 246, 0.15);
    transform: translateY(-2px);
}

h1 {
    margin: 0 0 10px 0;
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(to right, #a5b4fc, #c084fc, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.025em;
}

.subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

input {
    width: 100%;
    padding: 14px 16px;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    box-sizing: border-box;
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition-smooth);
}

input::placeholder {
    color: rgba(156, 163, 175, 0.6);
}

input:focus {
    border-color: var(--input-focus-border);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.input-container {
    width: 100%;
}

.password-container {
    position: relative;
    width: 100%;
}

input[type="password"],
input[type="text"] {
    width: 100%;
}

input[type="password"] {
    padding-right: 48px;
}

.eye-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-muted);
    user-select: none;
    transition: var(--transition-smooth);
}

.eye-icon:hover {
    color: var(--accent-indigo);
    transform: translateY(-50%) scale(1.1);
}

button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-violet) 100%);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

button:hover {
    background: linear-gradient(135deg, var(--accent-indigo) 20%, var(--accent-violet) 120%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}

button:active {
    transform: translateY(1px);
}

/* Footer styling */
.main-footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--glass-border);
    padding: 15px 0;
    color: var(--text-muted);
    z-index: 10;
}

.main-footer p {
    margin: 0;
}

.main-footer span {
    color: var(--accent-pink);
}

@media (max-width: 480px) {
    .container {
        width: calc(100% - 40px);
        max-width: 320px;
        padding: 30px 20px;
        border-radius: 20px;
    }
    h1 {
        font-size: 1.8rem;
    }
    .subtitle {
        font-size: 0.85rem;
        margin-bottom: 24px;
    }
    button, input {
        padding: 12px;
        font-size: 0.95rem;
    }
    .main-footer {
        font-size: 0.8rem;
        padding: 12px 10px;
    }
}
