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

body {
    margin: 0;
    padding: 10px;
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    transition: 0.5s;
    background: linear-gradient(135deg,#1e3c72,#2a5298);
    overflow: hidden;
}

.card {
    backdrop-filter: blur(5px);
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 30px;
    width: 340px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
}

input {
    width: 100%;
    font-size: 16px;
    padding: 12px;
    border-radius: 12px;
    border: none;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.2);
    color: white;
}

input::placeholder {
    color: #eee;
    border: none;
}

button {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    margin-top: 20px;
    cursor: pointer;
    font-weight: bold;
    background: rgba(0, 155, 71, 1);
    color: white;
    font-size: 16px;
    letter-spacing: 3px;
    text-shadow: 0 0 2px rgba(0, 0, 0, 1);
    transition: 0.3s;
}

button:hover {
    background: rgba(255, 161, 0, 1);
}

.weather img {
    width: 120px;
}
.weather p {
    font-size: 20px;
    letter-spacing: 3px;
    text-shadow: 0 0 3px rgba(0, 0, 0, 1);
}

h1 {
    font-size: 38px;
    text-shadow: 0 0 3px rgba(0, 0, 0, 1);
    margin: 0;
}
h2 {
    font-size: 26px;
    margin: 10px 0 0 0;
    letter-spacing: 2px;
    text-shadow: 0 0 3px rgba(0, 0, 0, 1);
}

.details {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 18px;
    text-shadow: 0 0 3px rgba(0, 0, 0, 1);
}

.loader {
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 15px auto;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}