/* Global reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    padding: 1rem;
}

.container {
    width: 100%;
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 3rem 2rem;
    width: 100%;
    text-align: center;
}

/* Bee emoji styling */
.bee-icon {
    font-size: 6rem;
    line-height: 1;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Title and subtitle */
.title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1rem;
    color: #636e72;
    margin-bottom: 2rem;
}

/* Form styles */
.login-form {
    width: 100%;
}

.input-group {
    margin-bottom: 1.5rem;
}

input[type="password"] {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid #dfe6e9;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

input[type="password"]:focus {
    border-color: #fdcb6e;
    background: white;
    box-shadow: 0 0 0 3px rgba(253, 203, 110, 0.1);
}

/* Button styles - touch-friendly size (min 44px) */
.login-btn {
    width: 100%;
    padding: 1rem;
    min-height: 48px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #fdcb6e 0%, #fab1a0 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(253, 203, 110, 0.4);
}

.login-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(253, 203, 110, 0.5);
}

.login-btn:active:not(:disabled) {
    transform: translateY(0);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Error message */
.error-message {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #ff7675;
    color: white;
    border-radius: 8px;
    font-size: 0.9rem;
    animation: fadeIn 0.3s ease;
}

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

.error-message.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

/* Loading spinner */
.loading-spinner {
    margin-top: 1rem;
    animation: fadeIn 0.3s ease;
}

.spinner {
    margin: 0 auto 0.5rem;
    width: 40px;
    height: 40px;
    border: 4px solid #dfe6e9;
    border-top-color: #fdcb6e;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-spinner p {
    color: #636e72;
    font-size: 0.9rem;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .login-box {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .bee-icon {
        font-size: 5rem;
    }

    .title {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    input[type="password"],
    .login-btn {
        font-size: 1rem;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .bee-icon {
        font-size: 4rem;
    }

    .login-box {
        padding: 1.5rem 1rem;
    }

    .title {
        font-size: 1.3rem;
    }
}

/* Landscape mode on mobile */
@media (max-height: 600px) and (orientation: landscape) {
    body {
        padding: 0.5rem;
    }

    .login-box {
        padding: 1.5rem 2rem;
    }

    .bee-icon {
        font-size: 3rem;
        margin-bottom: 0.5rem;
    }

    .title {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }

    .subtitle {
        margin-bottom: 1rem;
    }
}

/* Accessibility: Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .bee-icon {
        animation: none;
    }

    .error-message.shake {
        animation: none;
    }

    .spinner {
        animation-duration: 1.5s;
    }
}
