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

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: #0b1120;
    background-image: radial-gradient(circle at top left, #1e293b, #0b1120);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    overflow: hidden; /* Prevents scrollbar shaking */
}

.container {
    width: 100%;
    max-width: 400px;
    text-align: center;
    padding: 3rem 2.5rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    box-sizing: border-box;
}

.icon-ring {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem auto;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.subtitle {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

input {
    width: 100%;
    box-sizing: border-box;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 1.1rem;
    color: white;
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
}

input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
    background: rgba(0, 0, 0, 0.4);
}

button {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.5);
    margin-bottom: 1.5rem;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(37, 99, 235, 0.7);
}

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

/* Dynamic Alert Badge Styling */
.alert {
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.alert.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

/* Success State */
.alert.success {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Error State */
.alert.error {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Warning State (Invalid Input) */
.alert.warning {
    background: rgba(234, 179, 8, 0.1);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.3);
}


/* Apply Button Styling */
.apply-btn {
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 1rem;
    padding: 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: #4ade80; /* Matches the success green */
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.apply-btn:hover {
    background: rgba(34, 197, 94, 0.2);
    box-shadow: 0 10px 20px -5px rgba(34, 197, 94, 0.2);
    transform: translateY(-2px);
}

.apply-btn:active {
    transform: translateY(1px);
}

.apply-btn.hidden {
    display: none; /* Completely hides the button when not eligible */
}