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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at 50% 50%, #201635 0%, #110f16 60%, #09090b 100%);
    overflow: hidden;
}

.container {
    padding: 3rem 4rem;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(182, 126, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    text-align: center;
    min-width: 380px;
}

.welcome-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
#username {
    color: #c399ff;
    font-weight: 600;
}

.gradient-text {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #c399ff 0%, #8233ff 50%, #5114bc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 20px rgba(130, 51, 255, 0.4));
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-field {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(182, 126, 255, 0.15);
    padding: 14px;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}
.input-field:focus {
    border-color: #8233ff;
    background: rgba(255, 255, 255, 0.08);
}

.main-btn {
    background: linear-gradient(135deg, #8233ff 0%, #5114bc 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(130, 51, 255, 0.3);
}
.main-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(130, 51, 255, 0.5);
}

.status-text {
    margin-top: 15px;
    font-size: 0.9rem;
    min-height: 20px;
}

.logout-link {
    display: inline-block;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}
.logout-link:hover {
    color: #ef4444;
}

/* Стили для всплывающего окна (Toast) */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 16px 32px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
    opacity: 0;
    z-index: 9999;
    white-space: nowrap;
}
.toast.show {
    bottom: 40px;
    opacity: 1;
}

