:root {
    --primary-blue: #1c3d5a;
    --dark-blue: #12283a;
    --accent-red: #e63956;
    --accent-hover: #c42944;
    --text-white: #f8fafc;
    --text-muted: #cbd5e1;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

/* Background Animated Blobs */
.background-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    opacity: 0.6;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-red);
    top: -100px;
    right: -50px;
    opacity: 0.3;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: #3b82f6;
    bottom: -150px;
    left: -100px;
    opacity: 0.2;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30px, 50px) scale(1.1); }
}

/* Main Container */
.container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header & Logo */
.header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.logo-container {
    width: 375px;
    height: 225px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 30px auto -50px auto;
    animation: pulseLogo 2.5s infinite ease-in-out;
}

.droplet-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes pulseLogo {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.subtitle {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: -0.5rem;
}

.tagline {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-muted);
    border-bottom: 2px solid var(--accent-red);
    padding-bottom: 5px;
    display: inline-block;
}

/* Glassmorphism Form Card */
.form-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.instruction {
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.5;
}

.input-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 0.2rem;
}

.input-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(230, 57, 86, 0.2);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.submit-btn {
    width: 100%;
    background: var(--accent-red);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1.1rem;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 57, 86, 0.4);
}

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

.submit-btn:disabled {
    background: rgba(230, 57, 86, 0.5);
    cursor: not-allowed;
    transform: none;
}

/* Loader Animation */
.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

.hidden {
    display: none !important;
}

/* Success/Error States */
.message-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; scale: 0.9; }
    to { opacity: 1; scale: 1; }
}

.success-icon, .error-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.success-icon {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 2px solid #2ecc71;
}

.error-icon {
    background: rgba(230, 57, 86, 0.2);
    color: var(--accent-red);
    border: 2px solid var(--accent-red);
}

.message-container h3 {
    font-size: 1.6rem;
}

.message-container p {
    color: var(--text-muted);
    line-height: 1.5;
}

.reset-btn {
    background: transparent;
    color: white;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.2s;
}

.reset-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-top: 1rem;
}

.footer p {
    opacity: 0.7;
    margin: 0;
}

.social-link {
    color: var(--text-muted);
    opacity: 0.6;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.social-link:hover {
    color: white;
    opacity: 1;
    transform: translateY(-2px);
}

.social-link svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Responsive */
@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }
    .form-card {
        padding: 2rem 1.5rem;
    }
}
