/* Embedded FontAwesome Minimal Definitions */
@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url("../webfonts/fa-solid-900.woff2") format("woff2"), url("../webfonts/fa-solid-900.ttf") format("truetype");
}

.fas {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    line-height: 1;
    text-rendering: auto;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.fa-envelope:before {
    content: "\f0e0";
}

.fa-lock:before {
    content: "\f023";
}

.fa-shield-halved:before {
    content: "\f3ed";
}

.fa-arrow-right:before {
    content: "\f061";
}

.fa-circle-exclamation:before {
    content: "\f06a";
}

/* Embedded Outfit Font */
@font-face {
    font-family: 'Outfit';
    font-weight: 400;
    src: url('../fonts/outfit-400.ttf') format('truetype');
}

@font-face {
    font-family: 'Outfit';
    font-weight: 600;
    src: url('../fonts/outfit-600.ttf') format('truetype');
}

@font-face {
    font-family: 'Outfit';
    font-weight: 800;
    src: url('../fonts/outfit-800.ttf') format('truetype');
}

:root {
    --primary: #DC2626;
    --primary-glow: rgba(220, 38, 38, 0.4);
    --bg: #0F172A;
    --surface: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.1);
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}

.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    animation: move 20s infinite alternate;
}

.glow-1 {
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.glow-2 {
    bottom: -200px;
    left: -200px;
    animation-delay: -5s;
}

@keyframes move {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(100px, 100px);
    }
}

.login-container {
    width: 100%;
    max-width: 440px;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 48px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), #991B1B);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
    transform: rotate(-5deg);
}

h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 8px;
    color: #fff;
}

.subtitle {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 400;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 10px;
    margin-left: 4px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: color 0.3s;
}

input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 20px 16px 52px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15);
}

input:focus+i {
    color: var(--primary);
}

.btn-submit {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 18px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.2);
}

.btn-submit:hover {
    background: #B91C1C;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(220, 38, 38, 0.3);
}

.alert {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    padding: 16px;
    border-radius: 16px;
    color: #FECACA;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.footer {
    text-align: center;
    margin-top: 32px;
    color: var(--text-muted);
    font-size: 14px;
}

.footer span {
    color: var(--primary);
    font-weight: 600;
}

@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px;
        border-radius: 24px;
    }

    h1 {
        font-size: 26px;
    }

    .logo-box {
        width: 64px;
        height: 64px;
        font-size: 24px;
    }
}