.fixed-login-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1f6feb;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(31, 111, 235, 0.35);
    transition: transform 0.25s, background 0.25s, box-shadow 0.25s;
}

.fixed-login-btn:hover {
    background: #388bfd;
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(56, 139, 253, 0.45);
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    animation: modalBgIn 0.25s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #0d1117;
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    border: 1px solid #30363d;
    position: relative;
    animation: modalSlideIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-content h2 {
    color: #79c0ff;
    margin-bottom: 1.5rem;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #8b949e;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #f85149;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    color: #8b949e;
    margin-bottom: 0.3rem;
}

.form-group input {
    width: 100%;
    background: #0a0c10;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 0.8rem;
    font-size: 1rem;
    color: #e6edf3;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #388bfd;
    box-shadow: 0 0 0 3px rgba(56, 139, 253, 0.15);
}

.btn-submit {
    width: 100%;
    background: #238636;
    border: none;
    border-radius: 8px;
    padding: 0.8rem;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.2s, transform 0.2s;
}

.btn-submit:hover {
    background: #2ea043;
    transform: translateY(-1px);
}

.modal-footer {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #8b949e;
}

.modal-footer a {
    color: #79c0ff;
    cursor: pointer;
    text-decoration: none;
}

.modal-footer a:hover {
    text-decoration: underline;
}

.error-msg {
    background: #f8514910;
    border: 1px solid #f85149;
    color: #f85149;
    padding: 0.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    text-align: center;
}

.success-msg {
    background: #3fb95010;
    border: 1px solid #3fb950;
    color: #3fb950;
    padding: 0.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    text-align: center;
}

.user-greeting {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(13, 17, 23, 0.95);
    border: 1px solid #30363d;
    border-radius: 50px;
    padding: 10px 20px;
    z-index: 1000;
    display: flex;
    gap: 12px;
    align-items: center;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    animation: slideUpFade 0.5s ease 0.3s both;
}

.user-greeting span {
    color: #e6edf3;
}

.user-greeting a {
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.user-greeting a[href="logout.php"] {
    color: #f85149;
}

.user-greeting a[href="logout.php"]:hover {
    color: #ff7b72;
}

.auth-page .form-hint,
.modal-content .form-hint {
    font-size: 0.75rem;
    color: #6e7681;
    margin: 0 0 0.75rem;
    line-height: 1.45;
}

@keyframes modalBgIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
