@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600&display=swap');
html, body {
    height: 100%;
    min-height: 100vh;
}

body {
    margin: 0;
    padding: 40px;
    font-family: 'Nunito', sans-serif;
    background: radial-gradient(circle at top left, #3a9bdc, #2ecc71 60%, #1b1b1d 100%);
    background-size: cover;
    background-repeat: no-repeat;
	background-size: 100% 100%;

    color: #fff;
    transition: background 0.35s ease;
}
.app-icon {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.login-card {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255,255,255,0.95);
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    text-align: center;
    color: #222;
    transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
}

h1 {
    margin-top: 0;
    font-weight: 700;
}

.subtitle {
    margin-bottom: 20px;
    color: #444;
}

#emoji-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 20px;
}

.tile {
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    border: 3px solid transparent;
    position: relative;
    font-size: 32px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: tileIn 0.6s ease forwards;
}

@keyframes tileIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.tile.selected {
    background: #e8fff0;
    box-shadow: 0 0 10px rgba(46,204,113,0.6);
}

.progress {
    margin-top: 20px;
    font-size: 18px;
}

.error {
    margin-top: 15px;
    color: #d33;
    font-weight: 600;
}

.shake {
    animation: shake 0.4s;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    50% { transform: translateX(8px); }
    75% { transform: translateX(-8px); }
    100% { transform: translateX(0); }
}

/* Unlock fade-out */
.unlocking {
    opacity: 0;
    transform: scale(1.05);
    filter: blur(3px);
}

/* Background glow on unlock */
.unlocking-bg {
    background: radial-gradient(circle at center, #2ecc71, #3a9bdc 80%, #1b1b1d 100%);
}
