:root {
    --wa-green: #25D366;
    --wa-dark: #128C7E;
    --wa-light: #20C05C;
    --wa-glow: rgba(37, 211, 102, 0.4);
    
    --bg-base: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
    
    --error: #ef4444;
    --error-bg: rgba(239, 68, 68, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 1.5rem;
}

/* Background animated mesh gradient */
.background-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
}

.blob {
    position: absolute;
    filter: blur(90px);
    z-index: -1;
    opacity: 0.6;
    animation: drift 20s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: rgb(220, 248, 198); /* WA very light green */
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation-duration: 25s;
}

.blob-2 {
    bottom: -15%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: rgba(37, 211, 102, 0.15);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation-duration: 22s;
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 50%;
    width: 40vw;
    height: 40vw;
    background: rgba(18, 140, 126, 0.08);
    border-radius: 50% 50% 60% 40% / 40% 60% 50% 40%;
    transform: translate(-50%, -50%);
    animation-duration: 30s;
    animation-delay: -10s;
}

@keyframes drift {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    50% { transform: translate(5%, 5%) rotate(10deg) scale(1.05); }
    100% { transform: translate(-5%, -5%) rotate(-5deg) scale(0.95); }
}

/* Container & Card */
.container {
    width: 100%;
    max-width: 450px;
    z-index: 10;
    perspective: 1000px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 3rem 2.5rem;
    box-shadow: var(--glass-shadow), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
    transform: translateY(-8px);
}

/* Header & Icon */
.card-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.icon-pulse-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--wa-green);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.5; }
    70% { transform: scale(1.4); opacity: 0; }
    100% { transform: scale(1.4); opacity: 0; }
}

.icon-box {
    position: relative;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--wa-green) 0%, var(--wa-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px var(--wa-glow);
    z-index: 2;
}

h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
}

.subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 400;
}

/* Form Styles */
.modern-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.helper-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    line-height: 1.5;
    border: 1px dashed rgba(203, 213, 225, 0.8);
}

.helper-text strong {
    color: var(--wa-dark);
    font-weight: 600;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 1rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

input {
    width: 100%;
    padding: 1.1rem 1.25rem 1.1rem 3rem;
    font-size: 1.05rem;
    font-family: inherit;
    font-weight: 500;
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.9);
    border: 1.5px solid transparent;
    border-radius: 16px;
    outline: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02), inset 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input::placeholder {
    color: var(--text-tertiary);
    font-weight: 400;
}

input:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.04), inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

input:focus {
    background-color: #ffffff;
    border-color: var(--wa-green);
    box-shadow: 0 0 0 4px var(--wa-glow), 0 8px 16px rgba(0, 0, 0, 0.05);
}

input:focus + .input-prefix,
.input-wrapper:focus-within .input-prefix {
    color: var(--wa-green);
}

/* Error State */
.input-error {
    border-color: var(--error) !important;
    background-color: #fffaf9 !important;
}

.input-error:focus {
    box-shadow: 0 0 0 4px var(--error-bg) !important;
}

.error-message {
    display: none;
    align-items: center;
    gap: 0.3rem;
    color: var(--error);
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.5rem;
    padding-left: 0.25rem;
}

.error-message.show {
    display: flex;
    animation: slideUpFade 0.3s ease;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Button & Action Area */
.action-area {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-glow {
    position: relative;
    width: 100%;
    padding: 1.15rem;
    background: linear-gradient(to right, var(--wa-green), var(--wa-light));
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px var(--wa-glow), 0 0 0 inset rgba(0,0,0,0.1);
}

.btn-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.arrow-icon {
    transition: transform 0.3s ease;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, var(--wa-dark), var(--wa-green));
    opacity: 0;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px var(--wa-glow);
}

.btn-glow:hover::before {
    opacity: 1;
}

.btn-glow:hover .arrow-icon {
    transform: translateX(4px);
}

.btn-glow:active {
    transform: translateY(1px);
    box-shadow: 0 5px 10px var(--wa-glow);
}

/* Security Badge */
.security-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 480px) {
    .glass-card {
        padding: 2.5rem 1.5rem;
        border-radius: 20px;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}
