* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  }

body {
min-height: 100vh;


display: flex;
justify-content: center;
align-items: center;

font-family: "Segoe UI", sans-serif;

background:
    linear-gradient(
        135deg,
        #071329,
        #0f274d,
        #173b74
    );

color: white;


}

.auth-container {
width: 100%;
max-width: 500px;
padding: 24px;
}

.auth-card {
background: rgba(255,255,255,0.08);


backdrop-filter: blur(18px);

border: 1px solid rgba(255,255,255,0.12);

border-radius: 24px;

padding: 40px;

box-shadow:
    0 25px 50px rgba(0,0,0,0.25);


}

.auth-card h1 {
font-size: 40px;
margin-bottom: 10px;
}

.subtitle {
color: rgba(255,255,255,0.7);
margin-bottom: 32px;
}

.form-group {
margin-bottom: 20px;
}

.form-group label {
display: block;
margin-bottom: 8px;
font-size: 14px;
color: rgba(255,255,255,0.8);
}

.form-group input {
width: 100%;


padding: 14px 16px;

border-radius: 12px;

border: 1px solid rgba(255,255,255,0.15);

background: rgba(255,255,255,0.08);

color: white;

font-size: 15px;

outline: none;


}

.form-group input:focus {
border-color: #4da3ff;
box-shadow:
0 0 0 3px rgba(77,163,255,0.25);
}

.form-group input::placeholder {
color: rgba(255,255,255,0.4);
}

button {
width: 100%;


padding: 14px;

border: none;

border-radius: 12px;

background: #2f80ed;

color: white;

font-size: 15px;
font-weight: 600;

cursor: pointer;

transition: 0.2s;


}

button:hover {
transform: translateY(-2px);


background: #3c8dff;


}

.auth-links {
margin-top: 18px;


text-align: center;


}

.auth-links a {
color: #69b4ff;


text-decoration: none;

font-weight: 500;


}

.auth-links a:hover {
text-decoration: underline;
}

.auth-links span {
color: rgba(255,255,255,0.75);
}

#message {
margin-top: 20px;


text-align: center;

color: #ffb0b0;


}

@media (max-width: 600px) {


.auth-card {
    padding: 28px;
}

.auth-card h1 {
    font-size: 32px;
}

}

button:disabled {


opacity: 0.7;

cursor: not-allowed;

transform: none;


}

#message {


min-height: 24px;

margin-top: 20px;

text-align: center;

font-size: 14px;


}



.hidden {
    display: none !important;
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.toast {
    position: fixed;
    top: 16px;
    right: 16px;

    width: min(92vw, 320px);
    padding: 12px 14px;

    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    color: white;
    font-weight: 600;
    z-index: 99999;

    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    animation: slideIn 0.3s ease;
}

.toast.success {
    background: #16a34a;
}

.toast.error {
    background: #dc2626;
}

#toastMessage {
    flex: 1;
    word-break: break-word;
    line-height: 1.4;
    font-size: 14px;
}

.toast-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    width: auto;
    min-width: auto;
    flex-shrink: 0;
}

.hidden {
    display: none !important;
}

@media (max-width: 600px) {
    .toast {
        top: 12px;
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
        padding: 12px 14px;
    }

    .toast-close {
        font-size: 20px;
    }
}
