*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    background-image: linear-gradient(rgba(30, 15, 60, 0.55), rgba(22, 9, 45, 0.78)), url(natural.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

form{
    border-radius: 16px;
    font-size: 1rem;
    width: 340px;
    padding: 40px 32px 36px;
    text-align: center;
    color: rgba(255, 255, 255, 0.92);
    background-color: rgba(88, 28, 135, 0.18);
    border: 1px solid rgba(180, 130, 255, 0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    animation: pageLoadFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageLoadFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

form h2{
    margin-bottom: 28px;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: rgb(255, 255, 255);
}

.user{
    display: block;
    width: 100%;
    margin-bottom: 6px;
    border-radius: 8px;
    border: none;
    font-size: 0.95rem;
}

label.user{
    text-align: left;
    font-weight: 600;
    color: rgb(241, 130, 4);
    font-size: 0.85rem;
    margin-bottom: 6px;
    margin-top: 12px;
}

input.user{
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 4px;
    background-color: rgba(30, 15, 60, 0.4);
    color: rgb(246, 247, 249);
    border: 1px solid rgba(180, 130, 255, 0.25);
    border-radius: 10px;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input.user:hover {
    border-color: rgba(180, 130, 255, 0.45);
    background-color: rgba(30, 15, 60, 0.5);
}

input.user:focus{
    border-color: rgb(241, 130, 4);
    background-color: rgba(30, 15, 60, 0.6);
    box-shadow: 0 0 0 4px rgba(241, 130, 4, 0.15), inset 0 2px 4px rgba(0,0,0,0.2);
    transform: translateY(-1px);
}

#submit{
    display: block;
    width: 100%;
    margin-top: 24px;
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.85), rgba(126, 34, 206, 0.85));
    color: rgb(255, 255, 255);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
    position: relative;
    overflow: hidden;
}

#submit:hover{
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.95), rgba(147, 51, 234, 0.95));
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(147, 51, 234, 0.4);
}

#submit:active{
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.3);
}

.link{
    display: inline-block;
    margin-top: 16px;
    color: rgb(241, 130, 4);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.link:hover{
    color: rgb(255, 197, 132);
    text-decoration: underline;
}

#error, #statusMessage {
    margin-top: 16px;
    color: rgb(255, 130, 130);
    font-weight: 600;
    font-size: 0.95rem;
    min-height: 20px;
    transition: all 0.3s ease;
    animation: fadeInRow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#statusMessage:empty, #error:empty {
    opacity: 0;
}

@keyframes fadeInRow {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
    font-family: 'Segoe UI', Arial, sans-serif;
    z-index: 1000;
    background: linear-gradient(to top, rgba(30, 15, 60, 0.85), rgba(30, 15, 60, 0));
    pointer-events: none;
}

footer p {
    margin: 0;
}