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

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f0f0f0, #ffffff);
    color: #333;
}

.container {
    background: #fbfbfbcc;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid #1D71B8;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    width: 360px;
    text-align: center;
    backdrop-filter: blur(6px);
    position: relative;
}

.img-container {
  background: #1D71B8;
  padding: 1rem 2rem;
  margin-bottom: 1.5rem;
  border-radius: 35px;
}

img {
  width: 150px;
  height: auto;
  margin: 0 auto;
}

h2 { margin-bottom: 1.5rem; font-weight: 600; color: #222; }

form { display: flex; flex-direction: column; gap: 1rem; }

input[type="text"] {
    padding: 0.8rem;
    border-radius: 12px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 1rem;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}
input[type="text"]:focus {
    border: 1px solid #5563DE;
    box-shadow: 0 0 6px rgba(85,99,222,0.4);
}

button {
    background: #1D71B8;
    color: white;
    border: none;
    padding: 0.9rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
button:disabled { background: #888; cursor: not-allowed; }
button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.spinner {
    display: none;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1D71B8;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    animation: spin 1s linear infinite;
    margin: 1rem auto;
}
@keyframes spin { 0% { transform: rotate(0deg);} 100% { transform: rotate(360deg);} }

.result {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.8rem;
    border-radius: 10px;
}
.result.success { background: #d1fae5; color: #065f46; }
.result.error { background: #fee2e2; color: #991b1b; }
