
/* 1. Reset default sizing */
*{
    box-sizing: border-box;
}

body{
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
    font-family: arial, sans-serif;
    background: #f1f5f9;
    color: #1e293b;
}

/* 2. main container */
.container{
    width: 100%;
    max-width: 550px;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0  8px 25px rgb(0 0 0 / 8%);
}

h1{
    margin-top: 0;
    font-size: 27px;
}

.description {
    color: #64748b;
    line-height: 1.6;
}

/* 3. Buttons */
.buttons{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 25px 0;
}

button{
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: white;
    cursor: pointer;
    font-size: 15px;
}

button:hover{
    background: #1d4ed8;
}

.error-button {
    background: #dc2626;
}

.error-button:hover{
    background: #b91c1c;
}

button:disabled{
    opacity: 0.5;
    cursor: not-allowed;
}

/* 4. Load indicator */
.loading{
    padding: 12px;
    background: #eff6ff;
    border-radius: 8px;
    color: #2563eb;
}

/* 5.status massege */
#status{
    padding: 12px;
    background: #f8fafc;
    border-radius: #475569;
}

/* 6. user information */
.user-card {
    margin-top: 20px;
    padding: 20px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
}

.user-card h2 {
    margin-top: 0;
    color: #166534;
}

.user-card p {
    line-height: 1.7;
}

/* 7.Hide elements */
.hidden {
    display: none;
}