<!DOCTYPE html>
<html lang="pt">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Login Seguro | IG Radio</title>
    <link rel="stylesheet" href="/static/css/style.css">
    <link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800;900&display=swap" rel="stylesheet">
    <style>
        body {
            background: radial-gradient(circle at center, #1a1a2e 0%, #0f0f12 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100vh;
            margin: 0;
            overflow: hidden;
        }

        .login-wrapper {
            position: relative;
            z-index: 10;
            width: 100%;
            max-width: 420px;
            padding: 20px;
        }

        .login-card {
            background: rgba(22, 22, 26, 0.8);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 24px;
            padding: 50px 40px;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
            text-align: center;
        }

        .login-logo {
            height: 120px;
            margin-bottom: 30px;
            filter: drop-shadow(0 0 15px rgba(255, 0, 127, 0.2));
            transition: transform 0.3s;
        }

        .login-logo:hover {
            transform: scale(1.05);
        }

        .login-card h2 {
            font-weight: 900;
            color: #fff;
            margin-bottom: 10px;
            letter-spacing: -0.5px;
        }

        .login-card p {
            color: var(--text-muted);
            margin-bottom: 40px;
            font-size: 0.95rem;
        }

        .input-box {
            position: relative;
            margin-bottom: 25px;
        }

        .input-box input {
            width: 100%;
            padding: 18px 25px;
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid var(--border);
            border-radius: 16px;
            color: #fff;
            font-size: 1rem;
            text-align: center;
            transition: all 0.3s;
            outline: none;
        }

        .input-box input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 20px rgba(255, 0, 127, 0.15);
            background: rgba(0, 0, 0, 0.3);
        }

        .btn-login {
            width: 100%;
            padding: 18px;
            background: var(--primary);
            color: #fff;
            border: none;
            border-radius: 16px;
            font-weight: 800;
            font-size: 1.1rem;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 10px 20px rgba(255, 0, 127, 0.3);
        }

        .btn-login:hover {
            background: var(--primary-hover);
            transform: translateY(-2px);
            box-shadow: 0 15px 30px rgba(255, 0, 127, 0.4);
        }

        .back-link {
            display: inline-block;
            margin-top: 30px;
            color: var(--text-muted);
            text-decoration: none;
            font-size: 0.85rem;
            font-weight: 600;
            transition: color 0.2s;
        }

        .back-link:hover {
            color: #fff;
        }

        /* Decorative blobs */
        .blob {
            position: absolute;
            width: 300px;
            height: 300px;
            background: var(--primary);
            filter: blur(100px);
            opacity: 0.1;
            z-index: 1;
            border-radius: 50%;
        }

        .blob-1 { top: -100px; right: -100px; }
        .blob-2 { bottom: -100px; left: -100px; }
    </style>
</head>

<body>
    <div class="blob blob-1"></div>
    <div class="blob blob-2"></div>

    <div class="login-wrapper">
        <div class="login-card">
            <img src="/static/images/logo.png" alt="Logo" class="login-logo">
            <h2>Área Restrita</h2>
            <p>Insere a tua credencial de acesso</p>

            <form method="post">
                <div class="input-box">
                    <input type="password" name="password" placeholder="Palavra-passe" required autofocus>
                </div>
                <button type="submit" class="btn-login">Entrar no Painel</button>
            </form>

            <a href="/" class="back-link">← Voltar ao Portal Público</a>
        </div>
        
        <div style="text-align: center; margin-top: 20px; color: rgba(255,255,255,0.2); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;">
            Ambiente Seguro IG Radio
        </div>
    </div>
</body>

</html>
