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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(to bottom right, #1e3c72, #2a5298);
    margin: 0;
    padding: 0;
    color: #fff;
}

.container {
    background: rgba(255, 255, 255, 0.08);
    padding: 50px 30px;
    max-width: 480px;
    margin: 100px auto;
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
}

p {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: #d0dff7;
}

input[type="email"] {
    width: calc(100% - 32px); /* 16px padding left + right */
    padding: 14px 16px;
    font-size: 1rem;
    margin-bottom: 20px;
    border: none;
    border-radius: 10px;
    background: #f5f8ff;
    color: #333;
    outline: none;
    box-sizing: border-box;
}


input[type="email"]::placeholder {
    color: #888;
}

button {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    background: #00c9a7;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #00b397;
}

#result {
    margin-top: 24px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fefefe;
}

footer {
    margin-top: 40px;
    font-size: 0.9rem;
    color: #ccc;
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #00c9a7;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: #fff;
    padding: 32px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    color: #222;
}

.popup-content h2 {
    margin-top: 0;
    font-size: 1.6rem;
    color: #1e3c72;
}

.popup-content p {
    margin: 10px 0;
    color: #444;
}

.popup-content button {
    background: #00c9a7;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    margin-top: 16px;
    cursor: pointer;
}

.popup-content button:hover {
    background: #00b397;
}

.popup-content a {
    display: block;
    margin-top: 16px;
    color: #888;
    text-decoration: underline;
}
