body {
    background: linear-gradient(135deg, #F2F2F7, #E5E5EA);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    transition: background 0.5s ease;
}

.login-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 400px;
    text-align: center;
    transform: translateY(-20px);
    opacity: 0;
    animation: slideIn 0.5s forwards;
}

@keyframes slideIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.login-card h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #1c1c1e;
    letter-spacing: 1px;
    font-weight: 700;
}

.ios-input {
    width: 100%;
    padding: 14px 15px;
    border-radius: 15px;
    border: 1px solid #d1d1d6;
    margin-bottom: 15px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.ios-input:focus {
    border: 2px solid #007AFF;
    box-shadow: 0 0 8px rgba(0, 122, 255, 0.3);
    background: #f9f9ff;
}

.btn-ios-primary {
    width: 100%;
    padding: 14px;
    border-radius: 15px;
    background-color: #007AFF;
    color: white;
    font-weight: 600;
    border: none;
    font-size: 1rem;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.btn-ios-primary:hover {
    background-color: #005ecb;
    transform: scale(1.03);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.alert {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    animation: fadeIn 0.4s ease forwards;
}

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

/* Pulse subtle on inputs focus */
.ios-input:focus {
    animation: pulse 0.6s;
}

@keyframes pulse {
    0% { box-shadow: 0 0 8px rgba(0,122,255,0.3); }
    50% { box-shadow: 0 0 14px rgba(0,122,255,0.4); }
    100% { box-shadow: 0 0 8px rgba(0,122,255,0.3); }
}